ASP.NET Invalid value for key 'attachdbfilename'

jonboys

New Member
The next error pops when I initialize the \[code\]SqlConnection\[/code\] object:\[code\]Invalid value for key 'attachdbfilename'.\[/code\]I have tried to solve this issue for hours (Also tried any of the advices I could find on SO), but with no success.This is my connection string:\[code\]Data Source=(LocalDB)\v11.0;AttachDbFilename=|DataDirectory|Users.mdf;Integrated Security=True\[/code\]\[code\]Users.mdf\[/code\] is located in the \[code\]App_Data\[/code\] folder.I am using Visual Studio 2012 Ultimate, .NET is Ver 4.5, with SQL Server 2012.This issue started after I formatted my main driver, and installed the software I mentioned above.Thanks, Guy
 
Top