Connection String Meta :
res://Xz.Business.xModule/Model.RecordzModel.csdl|
res://Xz.Business.xModule/Model.RecordzModel.ssdl|
res://Xz.Business.xModule/Model.RecordzModel.msl;
Errors :
After Adding Business.xModule into the Config File’s URI s :
+ base {"Unable to load the specified metadata resource."} System.Data.EntityException {System.Data.MetadataException}
—
After Adding Xz.Business.xModule into the Config File’s URI s :
+ base {"Unable to resolve assembly 'Xz.Business.xModule'.":null} System.IO.IOException {System.IO.FileNotFoundException}
xModule Info :
The Assembly Name : Business.xModule
Default Namespace : Xz.Business.xModule
Folder Locations :
Solution Folder and xModule Module Folder
Solution Location..\x1\x2\xModule Location
Modules Location
Solution Location..\Build
“..” Means a folder back.
Notes :
- The modules have Post-Build Action which place the result assemblies into the “Build Folder”
- Other pieces of the config are correct.
- Unity, SQL CE, EF 5.0 were used.
How to resolve this Entity Connection Problem ?
If I have problems loading embedded resources I usually use ILDASM or reflector to get the resource name. In EF connection string you can provide a path to artifacts saved as files or embedded resources.
res://indicates embedded resource. Afterres://you put exact resource name (as showed by ILDASM). If the resource is in a folder you can useres://*/{resourceName}to say you want to search in all folders.