Click here to Skip to main content
15,920,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
<connectionstrings>
<add connectionString="Data Source=(local);Initial Catalog=SalesERPDB;Integrated Security=True"
name="SalesERPDAL"
providerName="System.Data.SqlClient"/>


This code from your "Learn MVC Project in 7 days" tutorial is getting an error that the server is not found or is not accessible. From what I have read it is because the instance of SQL Server I am using through Visual studio is not configured for remote access. Is there a way to correct this.

What I have tried:

Sql Server configuration manager does not work. It gets an error 'cannot connect to WMI provider.'
Posted
Updated 17-Jan-17 20:57pm

Hi, first check if your sqlserver services are running, it should not be stopped, thanks
 
Share this answer
 
Please check SQL instance is running & its port. Also you are using Integrated security, which means account from which application (Visual studio or IIS) is getting started should have access to SQL server. If SQL service is running, please check if it is configured for windows authentication
 
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