Click here to Skip to main content
15,891,708 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I make an app with local database after delpoye when i attempt to run i got above Error. my connection string is as....

[Error screen]

What I have tried:

C#
<connectionStrings>
<add name="connection" connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\stdmgmt.mdf;Integrated Security=True" />
<add name="connection1" connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\stdmgmt.mdf;Integrated Security=True" />
<add name="connection2" connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\stdmgmt.mdf;Integrated Security=True" />
<add name="connection3" connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\stdmgmt.mdf;Integrated Security=True" />
<add name="connection4" connectionString="Data Source=(LocalDB)\MSSQLLocalDB;AttachDbFilename=|DataDirectory|\stdmgmt.mdf;Integrated Security=True" />
</connectionStrings>


Please help me...
Posted
Updated 1-Jul-17 8:56am

1 solution

AttachDBFileName is evil, see this question:
How do I connect to old version database in visual stadio 2015[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900