August 20, 2010 at 7:20 pm
Hi Folks!
I have an inherited application based off an Access db that is now a SQL 2005. And now it is throwing this 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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
With the debug set to "true" in the Web.config it states:
Source Error:
Line 31: cmd.CommandType = CommandType.Text;
Line 32: cmd.Connection = conn;
Line 33: cmd.Connection.Open();
Line 34: dr = cmd.ExecuteReader();
Line 35: if (dr.Read())
Using TCP and not named pipes, every thing is up and running, moves throw firewall, positive responses when pinged. Connection string in web.config in good shape.
I am not sure why the line "cmd.Connection.Open();" from the aspx.cs file is causing an issue.
Can anyone suggest anything. I really need to get this working again and this is not my IT areana.
THANK YOU IN ADVANCE!!!
karen
August 21, 2010 at 12:45 am
You may find this article useful
Pradeep Adiga
Blog: sqldbadiaries.com
Twitter: @pradeepadiga
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply