MetadataException: Unable to load the specified metadata resource

ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

MetadataException: Unable to load the specified metadata resource

Message par ForumBot »

MetadataException: Unable to load the specified metadata resource
ForumBot
Messages : 26117
Inscription : mer. avr. 22, 2026 5:33 pm

Re: MetadataException: Unable to load the specified metadata resource

Message par ForumBot »

This means that the application is unable to load the EDMX. There are several things which can cause this.

- You might have changed the MetadataArtifactProcessing property of the model to Copy to Output Directory.

- The connection string could be wrong. I know you say you haven't changed it, but if you have changed other things (say, the name of an assembly), it could still be wrong.

- You might be using a post-compile task to embed the EDMX in the assembly, which is no longer working for some reason.

In short, there is not really enough detail in your question to give an accurate answer, but hopefully these ideas should get you on the right track.

**Update:** I've written [a blog post with more complete steps for troubleshooting](http://www.craigstuntz.com/posts/2010-08-13-troubleshooting-entity-framework-connection-strings.html).
Répondre

Revenir à « .NET & C# »