Last post Aug 13, 2013 05:09 AM by Happy Chen - MSFT
Aug 12, 2013 06:07 PM|stijnos7|LINK
I'm making a new website with ASP.NET (visual studio 2012).
First I need a connection string in my config file, like this:
connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|Bookstore.mdf;Integrated Security=True;User Instance=True"
My database is in my App_data folder of the project.
It would be nice if someone could help me!
Aug 12, 2013 06:15 PM|stijnos7|LINK
Solved, new problem:
Aug 13, 2013 05:09 AM|Happy Chen - MSFT|LINK
From what I understand you want to using Connection string with .mdf file in your website.you can try checking SQLEXPRESS Service is whether turned on ,make sure there is no problem installing SQLEXPRESS and make sure your database is in your App_data
folder of the project that your database does not contain illegal characters (e.g “/”, “.”).
As you upload picture blurrier not understand your specific question，please post error message in order to help us to understand your issue better.