Hi
I created ASP.NET 2.0 web application that uses SQL Server 2000 database and
it works perfectly when website and Sql server were on local machine.
Then I installed application on production server. Database is placed on
another server.
I received the 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)
Why it thinks I am trying to connect to SQL Server 2005 ? There is no any
2005 server on remote server!
This is my connection string:
Server=serverna me;Database=SOX ;User ID=userxxx;Pass word=******;
Query Analyzer and Enterprise Manager connect perfectly (when installed on
production server) to database server! Then I created small console
appplication which uses the same data layer as web application (and
connection string ) - it connected to remote database too! Only ASP.NET
2.0 application couldn't connect to remote Sql server 2000.
Can anyone help? 5 8512
Try changing the connection string to reflect the actual address to server,
that may include changing that information in the web.config file...
This is my connection string:
Server=ADDRESS TO SERVER!;Databas e=SOX;User ID=userxxx;Pass word=******;
"Mitya Mitriev" <aa*@stopspam.o rgwrote in message
news:uT******** ******@TK2MSFTN GP04.phx.gbl...
Hi
I created ASP.NET 2.0 web application that uses SQL Server 2000 database
and
it works perfectly when website and Sql server were on local machine.
Then I installed application on production server. Database is placed on
another server.
I received the 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)
Why it thinks I am trying to connect to SQL Server 2005 ? There is no any
2005 server on remote server!
This is my connection string:
Server=serverna me;Database=SOX ;User ID=userxxx;Pass word=******;
Query Analyzer and Enterprise Manager connect perfectly (when installed on
production server) to database server! Then I created small console
appplication which uses the same data layer as web application (and
connection string ) - it connected to remote database too! Only ASP.NET
2.0 application couldn't connect to remote Sql server 2000.
Can anyone help?
Do you mean IP address? I tried, it didn't help :(
"Henry" <at************ **@hotmail.comw rote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
Try changing the connection string to reflect the actual address to
server, that may include changing that information in the web.config
file...
This is my connection string:
Server=ADDRESS TO SERVER!;Databas e=SOX;User ID=userxxx;Pass word=******;
"Mitya Mitriev" <aa*@stopspam.o rgwrote in message
news:uT******** ******@TK2MSFTN GP04.phx.gbl...
>Hi I created ASP.NET 2.0 web application that uses SQL Server 2000 database and it works perfectly when website and Sql server were on local machine.
Then I installed application on production server. Database is placed on another server. I received the 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)
Why it thinks I am trying to connect to SQL Server 2005 ? There is no any 2005 server on remote server!
This is my connection string: Server=servern ame;Database=SO X;User ID=userxxx;Pass word=******;
Query Analyzer and Enterprise Manager connect perfectly (when installed on production server) to database server! Then I created small console appplication which uses the same data layer as web application (and connection string ) - it connected to remote database too! Only ASP.NET 2.0 application couldn't connect to remote Sql server 2000.
Can anyone help?
Mitya i think you might need to take some additional steps
See this page at : http://www.datamasker.com/SSE2005_NetworkCfg.htm
Hope that helps
Patrick
"Mitya Mitriev" <aa*@stopspam.o rgwrote in message
news:ex******** ******@TK2MSFTN GP03.phx.gbl...
Do you mean IP address? I tried, it didn't help :(
"Henry" <at************ **@hotmail.comw rote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. ..
>Try changing the connection string to reflect the actual address to server, that may include changing that information in the web.config file...
This is my connection string:
Server=ADDRE SS TO SERVER!;Databas e=SOX;User ID=userxxx;Pass word=******;
"Mitya Mitriev" <aa*@stopspam.o rgwrote in message news:uT******* *******@TK2MSFT NGP04.phx.gbl.. .
>>Hi I created ASP.NET 2.0 web application that uses SQL Server 2000 database and it works perfectly when website and Sql server were on local machine.
Then I installed application on production server. Database is placed on another server. I received the 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)
Why it thinks I am trying to connect to SQL Server 2005 ? There is no any 2005 server on remote server!
This is my connection string: Server=server name;Database=S OX;User ID=userxxx;Pass word=******;
Query Analyzer and Enterprise Manager connect perfectly (when installed on production server) to database server! Then I created small console appplicatio n which uses the same data layer as web application (and connection string ) - it connected to remote database too! Only ASP.NET 2.0 application couldn't connect to remote Sql server 2000.
Can anyone help?
Thank you, but I use Sql Server 2000.
"Patrick.O. Ige" <na********@hot mail.comwrote in message
news:Ou******** ******@TK2MSFTN GP04.phx.gbl...
Mitya i think you might need to take some additional steps
See this page at :http://www.datamasker.com/SSE2005_NetworkCfg.htm
Hope that helps
Patrick
"Mitya Mitriev" <aa*@stopspam.o rgwrote in message
news:ex******** ******@TK2MSFTN GP03.phx.gbl...
>Do you mean IP address? I tried, it didn't help :(
"Henry" <at************ **@hotmail.comw rote in message news:%2******* *********@TK2MS FTNGP04.phx.gbl ...
>>Try changing the connection string to reflect the actual address to server, that may include changing that information in the web.config file...
This is my connection string:
Server=ADDRES S TO SERVER!;Databas e=SOX;User ID=userxxx;Pass word=******;
"Mitya Mitriev" <aa*@stopspam.o rgwrote in message news:uT****** ********@TK2MSF TNGP04.phx.gbl. .. Hi I created ASP.NET 2.0 web application that uses SQL Server 2000 database and it works perfectly when website and Sql server were on local machine.
Then I installed application on production server. Database is placed on another server. I received the 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 connection s. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Why it thinks I am trying to connect to SQL Server 2005 ? There is no any 2005 server on remote server!
This is my connection string: Server=serve rname;Database= SOX;User ID=userxxx;Pass word=******;
Query Analyzer and Enterprise Manager connect perfectly (when installed on production server) to database server! Then I created small console appplicati on which uses the same data layer as web application (and connection string ) - it connected to remote database too! Only ASP.NET 2.0 application couldn't connect to remote Sql server 2000.
Can anyone help?
You have to make sure that the remote server is not "Hidden" which would
prevent a remote connection; also check that BOTH Sql Server and Windows
Authentication are enabled.
Peter
--
Co-founder, Eggheadcafe.com developer portal: http://www.eggheadcafe.com
UnBlog: http://petesbloggerama.blogspot.com
"Mitya Mitriev" wrote:
Thank you, but I use Sql Server 2000.
"Patrick.O. Ige" <na********@hot mail.comwrote in message
news:Ou******** ******@TK2MSFTN GP04.phx.gbl...
Mitya i think you might need to take some additional steps
See this page at :http://www.datamasker.com/SSE2005_NetworkCfg.htm
Hope that helps
Patrick
"Mitya Mitriev" <aa*@stopspam.o rgwrote in message
news:ex******** ******@TK2MSFTN GP03.phx.gbl...
Do you mean IP address? I tried, it didn't help :(
"Henry" <at************ **@hotmail.comw rote in message
news:%2******** ********@TK2MSF TNGP04.phx.gbl. .. Try changing the connection string to reflect the actual address to server, that may include changing that information in the web.config file...
This is my connection string:
Server=ADDRE SS TO SERVER!;Databas e=SOX;User ID=userxxx;Pass word=******;
"Mitya Mitriev" <aa*@stopspam.o rgwrote in message news:uT******* *******@TK2MSFT NGP04.phx.gbl.. . Hi I created ASP.NET 2.0 web application that uses SQL Server 2000 database and it works perfectly when website and Sql server were on local machine.
Then I installed application on production server. Database is placed on another server. I received the 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)
Why it thinks I am trying to connect to SQL Server 2005 ? There is no any 2005 server on remote server!
This is my connection string: Server=server name;Database=S OX;User ID=userxxx;Pass word=******;
Query Analyzer and Enterprise Manager connect perfectly (when installed on production server) to database server! Then I created small console appplicatio n which uses the same data layer as web application (and connection string ) - it connected to remote database too! Only ASP.NET 2.0 application couldn't connect to remote Sql server 2000.
Can anyone help?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Maziar Aflatoun |
last post by:
Hi guys,
I'm using Windows authentication to connect to SQL Server 2000. On my
computer the connection is fine. Now if I move it to a remote server, how
to I hard code my Username/Password in my connection string (using Windows
NT authentication and not SQL Server authentication)?
Thank you
Maz.
|
by: peshekeedweller |
last post by:
Using asp.net 1.1. vb.net 2003.
I am trying to connect to a remote sql server 2000 on a virtual machine
running windows 2000 server. I can connect through the server explorer in
visual studio, but cannot connect through code. I have done it before and
can not do it now; I don't know what changed. (I also cannot connect to
local Access...
|
by: vighnesh |
last post by:
Hi All
I am dealing a project in ASP.NET in which I have to establish a connection
to SQL Server 2000 database,where the database was located on a remote
system.
For this I have used SQLConnection object and specified the connetion
string.But when it comes to establish a connection its giving me the Error
that
I. Connection string :...
|
by: Rajeev Tipnis |
last post by:
http://support.microsoft.com/default.aspx?scid=kb;en-
us;819450
Questions:
1) Is this patch (fix) applicable to the .NET 1.1
Framework as well? That is, if we have Framework 1.1 (On
Win2K3/IIS6.0), do we still need this patch?
2) Does it specifically solve only this error:
The underlying connection was closed. An unexpected error
|
by: gharmel |
last post by:
I'm trying to get some clues on why I get (much) slower responses from
my PHP applications when dealing with a remote sql server as opposed to
a local sql server.
Here's my situation:
Server #1
MSSQL 2000 sp4
Windows 2000 Server
PHP4 on IIS5 (CGI)
| |
by: =?Utf-8?B?TWVuYWth?= |
last post by:
i have developed a web application for intranet and it is installed on the
Computer name 'Server' and its already installed sql server 2005, never
problem when connecting to sql server 2005 on the 'Server', this intranet has
another computer named 'B' and it's already exist SQL2000. i want update some
data to SQL2005 on 'Server' using in a...
|
by: OJ |
last post by:
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:
...
|
by: Vikram S |
last post by:
Hi All,
I have an ASP.NET 2.0 web application on a web server and a separate machine
for SQL Server 2000 Database. I am using a Connectionstring based on Sql
Authentication to connect to the the SQL 2000 Database.
Now, When I open the web page on the Web Server itself, I am able to
successfully connect to the Database which confirms...
|
by: dfarney |
last post by:
I have created a program in c# .net 2.0 that connects to a remote sql 2000 server. Connection for all our users/clients all over the US is fine, execpt one. Im thinking that it his firewall, but when XP prompts him he clicks "allow access". Here the the error message he gets:
System.Data.SqlClient.SqlException: An error has occurred while...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |