Page 1 of 1

Unable to load the specified metadata resource

Posted: Thu 24 Sep 2009 15:53
by Discovery
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)

Posted: Fri 25 Sep 2009 11:31
by AndreyR
Thank you for the report, we are already working on this problem.
I will post here as soon as it is fixed.

Posted: Fri 25 Sep 2009 11:55
by Discovery
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 ?

Posted: Mon 28 Sep 2009 08:39
by AndreyR
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.