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
Discovery
Posts: 14
Joined: Thu 24 Sep 2009 15:10

Unable to load the specified metadata resource

Post by Discovery » Thu 24 Sep 2009 15:53

Just downloaded the trial version today and I get the following error:

'Unable to load the specified metadata resource'

in the bit of code below:

----
public GalleryEntities() :
base@"name=Discovery.GalleryManagerConnectionString", "GalleryEntities")
----

My App.Config has the following connectionstring

----



----


Thanks

(I already posted this in Entity Framework Support, but I think this is a more appropriate place - Sorry for the multiposting)

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

Post by AndreyR » Fri 25 Sep 2009 11:31

Thank you for the report, we are already working on this problem.
I will post here as soon as it is fixed.

Discovery
Posts: 14
Joined: Thu 24 Sep 2009 15:10

Post by Discovery » Fri 25 Sep 2009 11:55

After (much) trial and error, I have found that after a rebuild, I get the missing .csdl, .ssdl and .msl files in the bin\debug area.

Are they supposed to go in there, or do you need to gently guide them to their proper place ?

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

Post by AndreyR » Mon 28 Sep 2009 08:39

The connection string you have posted corresponds to Metadata Artifact Processing set to EmbedInOutputAssembly.
In this case there should be no .csdl, .msl, and .ssdl files in the /bin/Debug folder.
If you want to use these generated files, please change the Metadata Artifact Processing to CopyToOutputDirectory
and change the connection string accordingly if necessary.

Post Reply