O
OJ
Hi,
I am at a loss here, I have a c# asp.net website which connects to a
remote SQL Server 2000 db via a connection string. If I set the
website up in the filesystem and use the inbuilt cassini webserver in
VS2005 then everything is rosy. If I then set up the website on the
local IIS 5.1 the site no longer connects and returns this error:
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server) Error Source: .Net SqlClient Data
Provider
Has anyone any idea why this might be and what could be happening
here? I can connect through Enterprise Manager. Here is the connection
string...
<connectionStrings>
<add name="MyConnectionString" connectionString="Data
Source=ServerName;Initial Catalog=MyDB;Trusted_Connection=False;User
ID=user;Password=password;" providerName="SqlNetTiersProvider"/>
</connectionStrings
As you may have noticed, for a little extra confusion the site is
using a generated NetTiers layer. Like I said though, it all seems to
work for cassini.
Regards,
Oliver
I am at a loss here, I have a c# asp.net website which connects to a
remote SQL Server 2000 db via a connection string. If I set the
website up in the filesystem and use the inbuilt cassini webserver in
VS2005 then everything is rosy. If I then set up the website on the
local IIS 5.1 the site no longer connects and returns this error:
An error has occurred while establishing a connection to the server.
When connecting to SQL Server 2005, this failure may be caused by the
fact that under the default settings SQL Server does not allow remote
connections. (provider: Named Pipes Provider, error: 40 - Could not
open a connection to SQL Server) Error Source: .Net SqlClient Data
Provider
Has anyone any idea why this might be and what could be happening
here? I can connect through Enterprise Manager. Here is the connection
string...
<connectionStrings>
<add name="MyConnectionString" connectionString="Data
Source=ServerName;Initial Catalog=MyDB;Trusted_Connection=False;User
ID=user;Password=password;" providerName="SqlNetTiersProvider"/>
</connectionStrings
As you may have noticed, for a little extra confusion the site is
using a generated NetTiers layer. Like I said though, it all seems to
work for cassini.
Regards,
Oliver