views:

596

answers:

1

I am getting a very non specific error when trying to connect to SQL server on remote server. I feel like I have made all the correct settings, allow TCP/IP, restarted the service, added rights to NT AUTHORITY\NETWORK SERVICE and other related users for the database. I can get to the aspx page, but as soon as I hit submit on the login I get:

Exception information: Exception type: SqlException Exception message: 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Thank you for your help.

+1  A: 

on the remote server, create an alias for the server instance that forces TCP/IP and the port, and use that alias in the connection string. That way it wont even try to use DBNMP

Also you can try forcing the issue int he connection string. http://connectionstrings.com/article.aspx?article=howtodefinewichnetworkprotocoltouse

StingyJack