It’s my first time in web development using ASP.NET MVC and when trying to run the sample web app that I was created. It was unfortunate that I received this error. I did a couple of research on this particular error. Although, I didn’t get a clear solution.
This error is related to Entity Framework, and this happens when directly invoking the EF method/service from “View”. Currently, my solution is to call .ToArray() from Controller before passing it to the View.