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.

Anuj holds professional certifications in Google Cloud, AWS as well as certifications in Docker and App Performance Tools such as New Relic. He specializes in Cloud Security, Data Encryption and Container Technologies.

Initial Consultation

Anuj Varma – who has written posts on Anuj Varma, Hands-On Technology Architect, Clean Air Activist.