Page 1 of 1

Unable to load the specified metadata resource

Posted: Wed 04 Mar 2009 13:07
by nbonne
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.

Posted: Wed 04 Mar 2009 14:18
by AndreyR
Try adding Devart Entity Model as a new item to your VS 2008 project (Right-click on Project -> Add-> New Item...->Devart Entity Model).
In this case problem should not be arised.

Posted: Wed 04 Mar 2009 14:29
by nbonne
I did not add the Devart Entity Model but just the generated class from the Entity Developer. When I add the edml file (even as existing item) I get across the issue and the entities class instantiates successfully

Same error but with dot connect for Oracle

Posted: Mon 13 Apr 2009 21:17
by estern
(Right-click on Project -> Add-> New Item...->Devart Entity Model).


I can add an Entity Model for SQL Server (have the trial version installed) but not an Entity Model for Oracle

Any suggestions?

problem solved

Posted: Mon 13 Apr 2009 23:32
by estern
production server web.config section had a small difference from the development server.

Posted: Tue 14 Apr 2009 06:42
by AndreyR
Was the problem resolved?