Unable to load the specified metadata resource
Posted: Wed 04 Mar 2009 13:07
I have generated a C# class entities in testmodel.cs using the entity developer 2.0b. In VS2008 I have added this generated class as an existing item. It builds OK. I did not put the connection string in the app.config file but rely on the connectionstring that is hardcoded as a parameter in the constructor of the base entities class.
However when I run the code I get "Unable to load the specified metadata resource" when instantiating the Entities class. I tried both options for MetaData Artifact Processing (EmbedInOutputAssembly and CopyToOutputDirectory) with same bad results.
In VS2008 I first added the enties class in a class library that was referenced from the UI project. But even adding the entities class directly to the UI project does not help.
The documentation does not seem to provide more detail on this.
However when I run the code I get "Unable to load the specified metadata resource" when instantiating the Entities class. I tried both options for MetaData Artifact Processing (EmbedInOutputAssembly and CopyToOutputDirectory) with same bad results.
In VS2008 I first added the enties class in a class library that was referenced from the UI project. But even adding the entities class directly to the UI project does not help.
The documentation does not seem to provide more detail on this.