Alan McDermott

Alan McDermott

  • NA
  • 1
  • 2.9k

Deployment problem connecting to database

Dec 19 2008 8:39 AM

Hi,

 

Here’s my scenario.  I have two machines:

 

DevBox

Windows 2000

IIS version 5

 

Desktop

WindowsXP Pro

IIS version 5.1

 

I open Visual Web Developer 2008 express on desktop and Select File>open Website, and browse to a folder on DevBox.  Once opened I run the project using F5 and it does as it should (I click a button and it connects to a database and displays information on a page). 

 

The trouble starts when I open IE6 on desktop and type in http://devbox/websitename/default.aspx.  It finds the website and displays exactly the same screen, but when I click the button it times out and throws up an error message:

 

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)

 

The website uses AJAX controls, namely an UpdatePanel and Timer, and I populate various controls in the code behind file.  I have Microsoft ASP.NET 2.0 AJAX Extensions 1.0 installed on both machines.

 

It seems very strange that I can open the website using VWD 2008 and see it working, but not if I browse to the website through IE6.

 

Can anyone suggest a possible cause?


Answers (1)