Unable to load the specified metadata resource

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
nbonne
Posts: 16
Joined: Fri 28 Nov 2008 10:11

Unable to load the specified metadata resource

Post by nbonne » 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.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Wed 04 Mar 2009 14:18

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.

nbonne
Posts: 16
Joined: Fri 28 Nov 2008 10:11

Post by nbonne » Wed 04 Mar 2009 14:29

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

estern
Posts: 19
Joined: Tue 27 Jan 2009 18:59

Same error but with dot connect for Oracle

Post by estern » Mon 13 Apr 2009 21:17

(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?

estern
Posts: 19
Joined: Tue 27 Jan 2009 18:59

problem solved

Post by estern » Mon 13 Apr 2009 23:32

production server web.config section had a small difference from the development server.

AndreyR
Devart Team
Posts: 2919
Joined: Mon 07 Jul 2008 13:16

Post by AndreyR » Tue 14 Apr 2009 06:42

Was the problem resolved?

Post Reply