I write a project at ASP.NET and I use SQL server database. I use the class MyAdoHelper
in order to connect and access my database from my aspx.cs file. I keep getting the next error when I try to use the function DoQuery
from my aspx.cs:
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: 26 - Error Locating Server/Instance Specified)
The error is at the line: conn.open();