Home
> Asp.net MVC, Entity Framework > ‘System.Data.Objects.DataClasses.EntityObject’ is defined in an assembly that is not referenced
‘System.Data.Objects.DataClasses.EntityObject’ is defined in an assembly that is not referenced
I start a pet project using MVC3 +entity framework. When I query the entity I got the following errors.
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′
I double checked my references in my project; System.Data.Entity is in my project references. After a bit Goggling, to solve this problem you need to add the assembly reference in the web.config. See the screen shot below:
Categories: Asp.net MVC, Entity Framework





Helpfull post
thanks dev,
this really helps