I'm getthing the following error when interacting with a model generated using EF
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'.
I've right clicked - add reference - System.Data.Entity, and took a wild guess at the following to the sites root web.config.
BrettCawley
0 Points
1 Post
Adding Assembly To MVC4 App
Aug 29, 2012 04:31 PM|LINK
I'm getthing the following error when interacting with a model generated using EF
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'.
I've right clicked - add reference - System.Data.Entity, and took a wild guess at the following to the sites root web.config.
But still get the same error. Is web.config the correct place to add an assembly in an MVC4 app?
Thanks
necro_mancer
Star
8169 Points
1595 Posts
Re: Adding Assembly To MVC4 App
Aug 29, 2012 05:55 PM|LINK
hi brett,
please refer to http://forums.asp.net/t/1381740.aspx/1
Please mark this response as an "answer" if it helps you. Thanks heaps!
Professional SQL 2008 R2 Service