Last post Jan 19, 2015 09:56 PM by Zhi Lv - MSFT
Jan 18, 2015 08:20 PM|klc_70|LINK
I am working on the exercises in Murach's ASP.NET 4.5 web programming with C# 2012. My version of VS is 2013 Ultimate. In chapter 4, the exercise calls for adding a SqlDataSource control to the web form, then configure the data source. In the Configure
Data Source dialog, the .mdf file appears in the dropdown list of data connections. I can select it and move to the next screen upon clicking Next. However, on the Connection String window, when I click Next, I get the error shown in the screenshot below.
I don't know how to fix whatever is wrong. Advice?
Note: the exercise should be using IIS Express.
Jan 19, 2015 02:01 AM|Rajneesh Verma|LINK
I believe localdb is not running, see the below post for troubleshooting
Jan 19, 2015 09:56 PM|Zhi Lv - MSFT|LINK
Welcome to ASP.NET forum.
The error means that it is not able to find the SQL Server on your server. So first thing to check is to make sure that you have Microsoft SQL Server Express LocalDB installed on your machine. For further info you could refer to:
Second thing to check is to make sure the SQL Server (SQLEXPRESS) service is running.
Besides, you could refer to the following links for further information: