Quantcast
Channel: Powertips » ASP.Net
Viewing all articles
Browse latest Browse all 10

Error: cs0012: The type ‘System.Data.Objects.DataClasses.EntityObject’ is defined in an assembly that is not referenced. You must add a reference to assembly ‘System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089′.Source Error:

$
0
0


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.


Viewing all articles
Browse latest Browse all 10

Trending Articles