I'm using Visual Studio 2015 and SQL Server Management Studio.
I can connect to the database server in SQL Server Management Studio but when I try to create a SQL Server database file in my web project in Visual Studio, I get the following error:
A network-related or instance-specific error occurred while establishing a connection to SQL Server.The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (Provider: SQL Network Interfaces, error: 50. Local Database Runtime error occurred. The specified LocalDB instance does not exist.
I tried the following and still get the same error
- Checked the SQL Server service is up and running
- Made sure database engine is configured to accept remote connections
- Created an exception on the firewall for the SQL Server instance
- Enabled TCP/IP in SQL Server Configuration and set TCP Port to 1433
- Enabled SQL Server Browser Service
I spent all my day on this and I really hope I get any help or hint to put me in the right direction.