I have encountered an exception when I use Entity Framework 4.0 RC. My Entity Framework model is encapsulated in a private assembly who\'s name is Procurement.EFDataProvider
There might be another reason. I also pulled my hair for a night.
I turned out that there is some disorder in the references in the solution. In my project, the edmx
belongs to a project called DataAccess.Dll
. But I have no reference to it from my exe. From my exe I have a reference to another project called Business.Dll
, and this project has a reference for and old location for the DataAccess.DLL
.
Make the following test to see if you have such problem:
You need to check your references and to ensure they refer to the update locations of your dlls.