473,416 Members | 1,531 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,416 software developers and data experts.

installed 2.0.50727 now I get a sql express error message

I now get the following error message after copying an asp.net application to
the deployment web server. I don't have SQLExpress or any version of SQL
2005 installed. I found the "LocalSQLServer" connection string in the
machine.config, changed that to look at a SQL 2000 database, but the error
still comes up.

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)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information about
the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: 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)

Source Error:

An unhandled exception was generated during the execution of the current web
request. Information regarding the origin and location of the exception can
be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): 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)]
System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
exception, Boolean breakConnection) +734995

System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject
stateObj) +188
System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner,
Boolean& failoverDemandDone, String host, String failoverPartner, String
protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean
encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection
owningObject, Boolean aliasLookup) +820

System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection
owningObject, SqlConnectionString connectionOptions, String newPassword,
Boolean redirectedUserInstance) +628

System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity
identity, SqlConnectionString connectionOptions, Object providerInfo, String
newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170

System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions
options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection
owningConnection) +359

System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection
owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection
owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection
owningObject) +496
System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection
owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset,
DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable,
IDbCommand command, CommandBehavior behavior) +121
System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32
startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior behavior)
+162
System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107

TIA,
Dave
Dec 18 '05 #1
7 2154
Please see
http://codebetter.com/blogs/sahil.ma...05/134318.aspx

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
__________________________________________________ ________
"deltalimagolf" <de***********@discussions.microsoft.com> wrote in message
news:6D**********************************@microsof t.com...
I now get the following error message after copying an asp.net application
to
the deployment web server. I don't have SQLExpress or any version of SQL
2005 installed. I found the "LocalSQLServer" connection string in the
machine.config, changed that to look at a SQL 2000 database, but the error
still comes up.

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)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about
the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: 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)

Source Error:

An unhandled exception was generated during the execution of the current
web
request. Information regarding the origin and location of the exception
can
be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): 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)]
System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
exception, Boolean breakConnection) +734995

System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject
stateObj) +188
System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner,
Boolean& failoverDemandDone, String host, String failoverPartner, String
protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean
encrypt, Boolean trustServerCert, Boolean integratedSecurity,
SqlConnection
owningObject, Boolean aliasLookup) +820

System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection
owningObject, SqlConnectionString connectionOptions, String newPassword,
Boolean redirectedUserInstance) +628

System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity
identity, SqlConnectionString connectionOptions, Object providerInfo,
String
newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
+170

System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions
options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection
owningConnection) +359

System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection
owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection
owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection
owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection
owningObject) +496
System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection
owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset,
DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
srcTable,
IDbCommand command, CommandBehavior behavior) +121
System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32
startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior
behavior)
+162
System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107

TIA,
Dave

Dec 18 '05 #2
The only thing installed on the deployment server is the .net 2.0 framework.
Nothing sql server 2005 has been installed.

"Sahil Malik [MVP C#]" wrote:
Please see
http://codebetter.com/blogs/sahil.ma...05/134318.aspx

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
__________________________________________________ ________
"deltalimagolf" <de***********@discussions.microsoft.com> wrote in message
news:6D**********************************@microsof t.com...
I now get the following error message after copying an asp.net application
to
the deployment web server. I don't have SQLExpress or any version of SQL
2005 installed. I found the "LocalSQLServer" connection string in the
machine.config, changed that to look at a SQL 2000 database, but the error
still comes up.

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)
Description: An unhandled exception occurred during the execution of the
current web request. Please review the stack trace for more information
about
the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: 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)

Source Error:

An unhandled exception was generated during the execution of the current
web
request. Information regarding the origin and location of the exception
can
be identified using the exception stack trace below.

Stack Trace:

[SqlException (0x80131904): 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)]
System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
exception, Boolean breakConnection) +734995

System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject
stateObj) +188
System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner,
Boolean& failoverDemandDone, String host, String failoverPartner, String
protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire, Boolean
encrypt, Boolean trustServerCert, Boolean integratedSecurity,
SqlConnection
owningObject, Boolean aliasLookup) +820

System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection
owningObject, SqlConnectionString connectionOptions, String newPassword,
Boolean redirectedUserInstance) +628

System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity
identity, SqlConnectionString connectionOptions, Object providerInfo,
String
newPassword, SqlConnection owningObject, Boolean redirectedUserInstance)
+170

System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions
options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection
owningConnection) +359

System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection
owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection
owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection
owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection
owningObject) +496
System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection
owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection
outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset,
DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
srcTable,
IDbCommand command, CommandBehavior behavior) +121
System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32
startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior
behavior)
+162
System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107

TIA,
Dave


Dec 18 '05 #3
Right but network connections are disabled by default on certain editions of
SQL Server. This has nothing to do with the framework.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
__________________________________________________ ________
"deltalimagolf" <de***********@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
The only thing installed on the deployment server is the .net 2.0
framework.
Nothing sql server 2005 has been installed.

"Sahil Malik [MVP C#]" wrote:
Please see
http://codebetter.com/blogs/sahil.ma...05/134318.aspx

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
__________________________________________________ ________
"deltalimagolf" <de***********@discussions.microsoft.com> wrote in
message
news:6D**********************************@microsof t.com...
>I now get the following error message after copying an asp.net
>application
>to
> the deployment web server. I don't have SQLExpress or any version of
> SQL
> 2005 installed. I found the "LocalSQLServer" connection string in the
> machine.config, changed that to look at a SQL 2000 database, but the
> error
> still comes up.
>
> 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)
> Description: An unhandled exception occurred during the execution of
> the
> current web request. Please review the stack trace for more information
> about
> the error and where it originated in the code.
>
> Exception Details: System.Data.SqlClient.SqlException: 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)
>
> Source Error:
>
> An unhandled exception was generated during the execution of the
> current
> web
> request. Information regarding the origin and location of the exception
> can
> be identified using the exception stack trace below.
>
> Stack Trace:
>
> [SqlException (0x80131904): 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)]
> System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
> exception, Boolean breakConnection) +734995
>
> System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject
> stateObj) +188
> System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner,
> Boolean& failoverDemandDone, String host, String failoverPartner,
> String
> protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire,
> Boolean
> encrypt, Boolean trustServerCert, Boolean integratedSecurity,
> SqlConnection
> owningObject, Boolean aliasLookup) +820
>
> System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection
> owningObject, SqlConnectionString connectionOptions, String
> newPassword,
> Boolean redirectedUserInstance) +628
>
> System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity
> identity, SqlConnectionString connectionOptions, Object providerInfo,
> String
> newPassword, SqlConnection owningObject, Boolean
> redirectedUserInstance)
> +170
>
> System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions
> options, Object poolGroupProviderInfo, DbConnectionPool pool,
> DbConnection
> owningConnection) +359
>
> System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection
> owningConnection, DbConnectionPool pool, DbConnectionOptions options)
> +28
> System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection
> owningObject) +424
>
> System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection
> owningObject) +66
> System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection
> owningObject) +496
>
> System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection
> owningConnection) +82
>
> System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection
> outerConnection, DbConnectionFactory connectionFactory) +105
> System.Data.SqlClient.SqlConnection.Open() +111
> System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset,
> DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
> srcTable,
> IDbCommand command, CommandBehavior behavior) +121
> System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32
> startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior
> behavior)
> +162
> System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107
>
> TIA,
> Dave


Dec 19 '05 #4
I'm attempting to connect to a sql server 2000 database located on another
machine.

"Sahil Malik [MVP C#]" wrote:
Right but network connections are disabled by default on certain editions of
SQL Server. This has nothing to do with the framework.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
__________________________________________________ ________
"deltalimagolf" <de***********@discussions.microsoft.com> wrote in message
news:CE**********************************@microsof t.com...
The only thing installed on the deployment server is the .net 2.0
framework.
Nothing sql server 2005 has been installed.

"Sahil Malik [MVP C#]" wrote:
Please see
http://codebetter.com/blogs/sahil.ma...05/134318.aspx

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
__________________________________________________ ________
"deltalimagolf" <de***********@discussions.microsoft.com> wrote in
message
news:6D**********************************@microsof t.com...
>I now get the following error message after copying an asp.net
>application
>to
> the deployment web server. I don't have SQLExpress or any version of
> SQL
> 2005 installed. I found the "LocalSQLServer" connection string in the
> machine.config, changed that to look at a SQL 2000 database, but the
> error
> still comes up.
>
> 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)
> Description: An unhandled exception occurred during the execution of
> the
> current web request. Please review the stack trace for more information
> about
> the error and where it originated in the code.
>
> Exception Details: System.Data.SqlClient.SqlException: 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)
>
> Source Error:
>
> An unhandled exception was generated during the execution of the
> current
> web
> request. Information regarding the origin and location of the exception
> can
> be identified using the exception stack trace below.
>
> Stack Trace:
>
> [SqlException (0x80131904): 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)]
> System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
> exception, Boolean breakConnection) +734995
>
> System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject
> stateObj) +188
> System.Data.SqlClient.TdsParser.Connect(Boolean& useFailoverPartner,
> Boolean& failoverDemandDone, String host, String failoverPartner,
> String
> protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire,
> Boolean
> encrypt, Boolean trustServerCert, Boolean integratedSecurity,
> SqlConnection
> owningObject, Boolean aliasLookup) +820
>
> System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection
> owningObject, SqlConnectionString connectionOptions, String
> newPassword,
> Boolean redirectedUserInstance) +628
>
> System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity
> identity, SqlConnectionString connectionOptions, Object providerInfo,
> String
> newPassword, SqlConnection owningObject, Boolean
> redirectedUserInstance)
> +170
>
> System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions
> options, Object poolGroupProviderInfo, DbConnectionPool pool,
> DbConnection
> owningConnection) +359
>
> System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection
> owningConnection, DbConnectionPool pool, DbConnectionOptions options)
> +28
> System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection
> owningObject) +424
>
> System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection
> owningObject) +66
> System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection
> owningObject) +496
>
> System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection
> owningConnection) +82
>
> System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection
> outerConnection, DbConnectionFactory connectionFactory) +105
> System.Data.SqlClient.SqlConnection.Open() +111
> System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset,
> DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
> srcTable,
> IDbCommand command, CommandBehavior behavior) +121
> System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables, Int32
> startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior
> behavior)
> +162
> System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107
>
> TIA,
> Dave


Dec 19 '05 #5
Hi,
I have the same problem calling an sql server 2000 from a remote server.
If I use the internall test server it works but if I use IIS it doesn't
work.
Thomas

"deltalimagolf" <de***********@discussions.microsoft.com> schrieb im
Newsbeitrag news:3E**********************************@microsof t.com...
I'm attempting to connect to a sql server 2000 database located on another
machine.

"Sahil Malik [MVP C#]" wrote:
Right but network connections are disabled by default on certain editions
of
SQL Server. This has nothing to do with the framework.

- Sahil Malik [MVP]
ADO.NET 2.0 book -
http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
__________________________________________________ ________
"deltalimagolf" <de***********@discussions.microsoft.com> wrote in
message
news:CE**********************************@microsof t.com...
> The only thing installed on the deployment server is the .net 2.0
> framework.
> Nothing sql server 2005 has been installed.
>
> "Sahil Malik [MVP C#]" wrote:
>
>> Please see
>> http://codebetter.com/blogs/sahil.ma...05/134318.aspx
>>
>> - Sahil Malik [MVP]
>> ADO.NET 2.0 book -
>> http://codebetter.com/blogs/sahil.ma.../13/63199.aspx
>> __________________________________________________ ________
>>
>>
>> "deltalimagolf" <de***********@discussions.microsoft.com> wrote in
>> message
>> news:6D**********************************@microsof t.com...
>> >I now get the following error message after copying an asp.net
>> >application
>> >to
>> > the deployment web server. I don't have SQLExpress or any version
>> > of
>> > SQL
>> > 2005 installed. I found the "LocalSQLServer" connection string in
>> > the
>> > machine.config, changed that to look at a SQL 2000 database, but the
>> > error
>> > still comes up.
>> >
>> > 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)
>> > Description: An unhandled exception occurred during the execution of
>> > the
>> > current web request. Please review the stack trace for more
>> > information
>> > about
>> > the error and where it originated in the code.
>> >
>> > Exception Details: System.Data.SqlClient.SqlException: 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)
>> >
>> > Source Error:
>> >
>> > An unhandled exception was generated during the execution of the
>> > current
>> > web
>> > request. Information regarding the origin and location of the
>> > exception
>> > can
>> > be identified using the exception stack trace below.
>> >
>> > Stack Trace:
>> >
>> > [SqlException (0x80131904): 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)]
>> > System.Data.SqlClient.SqlInternalConnection.OnErro r(SqlException
>> > exception, Boolean breakConnection) +734995
>> >
>> > System.Data.SqlClient.TdsParser.ThrowExceptionAndW arning(TdsParserStateObject
>> > stateObj) +188
>> > System.Data.SqlClient.TdsParser.Connect(Boolean&
>> > useFailoverPartner,
>> > Boolean& failoverDemandDone, String host, String failoverPartner,
>> > String
>> > protocol, SqlInternalConnectionTds connHandler, Int64 timerExpire,
>> > Boolean
>> > encrypt, Boolean trustServerCert, Boolean integratedSecurity,
>> > SqlConnection
>> > owningObject, Boolean aliasLookup) +820
>> >
>> > System.Data.SqlClient.SqlInternalConnectionTds.Ope nLoginEnlist(SqlConnection
>> > owningObject, SqlConnectionString connectionOptions, String
>> > newPassword,
>> > Boolean redirectedUserInstance) +628
>> >
>> > System.Data.SqlClient.SqlInternalConnectionTds..ct or(DbConnectionPoolIdentity
>> > identity, SqlConnectionString connectionOptions, Object
>> > providerInfo,
>> > String
>> > newPassword, SqlConnection owningObject, Boolean
>> > redirectedUserInstance)
>> > +170
>> >
>> > System.Data.SqlClient.SqlConnectionFactory.CreateC onnection(DbConnectionOptions
>> > options, Object poolGroupProviderInfo, DbConnectionPool pool,
>> > DbConnection
>> > owningConnection) +359
>> >
>> > System.Data.ProviderBase.DbConnectionFactory.Creat ePooledConnection(DbConnection
>> > owningConnection, DbConnectionPool pool, DbConnectionOptions
>> > options)
>> > +28
>> >
>> > System.Data.ProviderBase.DbConnectionPool.CreateOb ject(DbConnection
>> > owningObject) +424
>> >
>> > System.Data.ProviderBase.DbConnectionPool.UserCrea teRequest(DbConnection
>> > owningObject) +66
>> >
>> > System.Data.ProviderBase.DbConnectionPool.GetConne ction(DbConnection
>> > owningObject) +496
>> >
>> > System.Data.ProviderBase.DbConnectionFactory.GetCo nnection(DbConnection
>> > owningConnection) +82
>> >
>> > System.Data.ProviderBase.DbConnectionClosed.OpenCo nnection(DbConnection
>> > outerConnection, DbConnectionFactory connectionFactory) +105
>> > System.Data.SqlClient.SqlConnection.Open() +111
>> > System.Data.Common.DbDataAdapter.FillInternal(Data Set dataset,
>> > DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String
>> > srcTable,
>> > IDbCommand command, CommandBehavior behavior) +121
>> > System.Data.Common.DbDataAdapter.Fill(DataTable[] dataTables,
>> > Int32
>> > startRecord, Int32 maxRecords, IDbCommand command, CommandBehavior
>> > behavior)
>> > +162
>> > System.Data.Common.DbDataAdapter.Fill(DataTable dataTable) +107
>> >
>> > TIA,
>> > Dave
>>
>>
>>


Dec 21 '05 #6
We are having the same issue when connecting to SQl Server 2000 -
Though on the development box I am using it did originally have 2005
express installed

Jan 17 '06 #7
I was getting this exception until I opened a hole in the server machine's firewall for sqlservr.exe (executable for SQL Server 2000's MSSQLSERVER service). I also had the same (apparently very versatile) exception when mistakenly using "uid" instead of "user id" in an SQL Server 2000 connection string.

Hope that helps someone - Thomas, the problem you're having with not working from a remote server sounds very similar to the setup I had.
Feb 10 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Vuillermet Jacques | last post by:
Hi ! In a project, in References, when I click on "Add... / Web reference...", the following message occurs : "Some of the files required for Web references are not installed." I've...
6
by: deltalimagolf | last post by:
I now get the following error message after copying an asp.net application to the deployment web server. I don't have SQLExpress or any version of SQL 2005 installed. I found the "LocalSQLServer"...
10
by: musosdev | last post by:
Hi guys I'm trying to migrate to VS2005... I've managed to do that, but realised I'd opened my web projects as file projects, and I'm getting the error about network BIOS command limit. ...
1
by: Michael | last post by:
Hi, I've read Scott's article: http://weblogs.asp.net/scottgu/archive/2005/08/25/423703.aspx but when I try to create a new database file in App_Data with Visual Studio 2005, it shows error: ...
5
by: wenning | last post by:
Hello, I am struggling with a website on a W2K3 server which has the actual content on a NAS server (also W2K3 based). The servers doesn't run in a domain and arent intended to. I did make...
14
by: Developer | last post by:
Hello All, i have recently installed VS2005 and was trying to install SQL sever 2000. I have Win XP' SP2. But when I tried installing, it only installed client tools and not the database. Can...
0
by: sklett | last post by:
I've created a service project. Added installer classes. Ran InstallUtil /i from the .net 2.0 path IE: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727 I've been googling this problem and can't...
8
by: Joe Withawk | last post by:
I have a solution consisting of a c# project as win application and a c++ project as classlibrary. Both are .net 2.0 The classlibrary handles some loading of quicktime movies, but that should not...
7
by: Academia | last post by:
I was told that SqlServer express should get installed when VS2008Pro is installed (that is it is on the same DVD). I had a couple of errors during vs2008's installation and I don't see any...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.