moving EDMX file System.Data.MetadataException: Unable to load the specified metadata resource.
Posted
by
Dani
on Stack Overflow
See other posts from Stack Overflow
or by Dani
Published on 2010-12-25T19:49:30Z
Indexed on
2010/12/25
19:54 UTC
Read the original article
Hit count: 219
I have a ASP.NET MVC 2 project. I've created edmx file on the class library project that holds the model.
now I've created another class library called it shared and moved the edmx file over there. resolved some issues, everything compiles, but it can't find the connection string resource at runtime.
I've copied the ConnectionString part of the Web.Config to the main file, the old class library app.config file and the new class library app.config file.
Still get this error:
System.Data.MetadataException: Unable to load the specified metadata resource.
Line 75: public myProjdb() : base("name=myProjdb", "MyProjdb")
in the MyProj.Designer.cs file.
Any Idea how to resolve this issue ?
Is there a better way to store connection string data ?
© Stack Overflow or respective owner