Fix: The type 'System.Data.Objects.ObjectContext' is defined in an assembly that is not referenced.

I got this message in a class that inherits from  DbContext.  It made no sense, because System.Data.Entity was definitely referenced in my ASP.NET project.

The fix was to select the reference in the properties page and change Copy Local to True.


1 Comment

  • Sorry but it make sens - you run it on computer without entity framework installed and you thought that it will work? :)

Comments have been disabled for this content.