views:

16

answers:

0

Hello,

I've been working with a number of web application projects for a few weeks now. These have been C# MVC web apps using LINQ to SQL.

In the last few days when I've been opening Visual Studio it has been presenting me with the following dialogue.

The connection property in the web.config file is missing or incorrect. The connection string from the .dbml file has been used in its place.

I have no idea why I'm getting this. I've not changed the Web.Config or anything in the database. It is affecting all projects, even ones I've not opened for weeks.

The only thing I've seen on the web is this: http://www.stuffthatjustworks.com/How+To+Fix+LINQ+To+SQL+DBML+Issue+The+Connection+Property+Of+The+Webconfig+File+Is+Missing+Or+Incorrect.aspx

However, it feels like a complete VS uninstallation and a registry hack is a bit extreme.

Anyone come across this before, knows why it happens and knows how to fix it?

Thanks,