Ortund
Ortund

Reputation: 8245

InvalidOperationException no connection string

I'm using LinqToSql for my project's data layer. I set up a data model through the wizard, but I'm getting an InvalidOperationException saying that the connection string doesn't exist.

Here's a screenshot that shows the error and the connection string side-by-side.

InvalidOperationException

I've done a clean and rebuild of the solution, I've also done several fresh new builds...

I understand what the error means, but as the connection string is there in the App.Config file, I have no idea how to fix it.

Can anyone provide some clarity?

Upvotes: 0

Views: 159

Answers (1)

Andrew
Andrew

Reputation: 3806

You should add app.config file with connectionStrings section configured to your imajManagement project (startup project)

Upvotes: 2

Related Questions