I am facing a following error while trying to connect with an SQL server from Windows Service (written in vb.net).
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)
This service is running on a Windows Web Server 2008 R2 and with SQL Server 2008. SQL Server is also located on the same machine. Also, the firewall is disabled on the server. I have couple of web applications running on the same windows server connecting to the same sql server and there is no connection issue. But, this issue is faced only when I try to connect from the windows service only.
Any help will be greatly appreciated.
Thanks