MetadataException: Unable to load the specified metadata resource
When you move your data layer to another project or another folder – you may encounter the following exception
MetadataException: Unable to load the specified metadata resource
The Solution:
The following res: (resource) references need to point to your newly placed model
<add name=”Entities” connectionString=”metadata=
res://*/Models.MyModelName.csdl|
res://*/Models.MyModelName.ssdl|
res://*/Models.MyModelName.msl;
You do not need to fully qualify the namespace –the relative folder path (Models…) is all that is needed.
Leave a Reply