Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Aug 29, 2012 05:55 PM by necro_mancer
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=220.127.116.11, 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.
/* omitted some dependentAssemblies */
<assemblyIdentity name="System.Data.Entity" publicKeyToken="b77a5c561934e089" />
<bindingRedirect oldVersion="18.104.22.168" newVersion="22.214.171.124" />
But still get the same error. Is web.config the correct place to add an assembly in an MVC4 app?
Aug 29, 2012 05:55 PM|LINK
please refer to http://forums.asp.net/t/1381740.aspx/1
Please mark this response as an "answer" if it helps you. Thanks heaps!