Reputation: 1147
I'm using Entity Framework inside a DLL.
VS creates a app.config, but when I run the application I receive this exception.
"The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid."
Upvotes: 0
Views: 401
Reputation: 32437
You need to include that connection string in the start up project of your solution. If it is a Asp.Net WebForms/MVC application include that connection string in the Web.Config
file or if it is a Windows or Console App include it in App.Config
file.
Upvotes: 4