The Entity Datasource controls were giving me a ton of compile time build issues when I recently converted our Webforms application from EF 4.4 to EF6. When trying to access the context object, I typically encounter the following errors:
I followed the identical instructions provided in: http://entityframework.codeplex.com/wikipage?title=Updating%20Applications%20to%20use%20EF6.
The error message that appears is as follows:
1) Module System.Data.Entity. version="220.127.116.11" should be referenced
2) Cannot case expression of type System.Data.Objects.ObjectContext to type ObjectContext (After explicitly type casting to System.Data.Entity.Core.Objects.ObjectContext)
Can anyone assist in fixing this?