Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

"Connection to the server cannot be established" error message when you try to create an ASP.NET Web application by using Visual Studio .NET


View products that this article applies to.

Symptoms

When you try to create a Microsoft ASP.NET Web application by using Microsoft Visual Studio .NET on a computer that has a firewall application installed, you may receive the following error message:

Connection to the server cannot be established.

↑ Back to the top


Cause

The firewall application is incorrectly configured to work with Microsoft Internet Information Services (IIS).

↑ Back to the top


Resolution

To resolve this problem, configure your firewall application to work with IIS, if it is possible. If you cannot reconfigure your firewall application, remove your firewall application.

↑ Back to the top


Status

This behavior is by design.

↑ Back to the top


More information

Steps to reproduce the behavior

On a computer that has a firewall application installed, follow these steps:
  1. Start Visual Studio .NET.
  2. On the File menu, point to New, and then click Project. The New Project dialog box appears.
  3. Under Project Types, click Visual Basic Projects.
  4. Under Templates, click ASP.NET Web Application.
  5. In the Location box, type http://WebServerName/VirtualDirectoryName/MyWebApplication

    Note Replace WebServerName with the name of a Web server, and then replace VirtualDirectoryName with the name of a virtual directory on this Web server.
  6. Click Open. You may receive the error message that is mentioned in the "Symptoms" section of this article.

↑ Back to the top


References

For more information, visit the following Microsoft Developer Network (MSDN) Web sites:

Introduction to ASP.NET Web Applications in Visual Studio
http://msdn2.microsoft.com/en-us/library/aa711425(vs.71).aspx

Internet Information Services
http://msdn2.microsoft.com/en-us/library/aa286507.aspx

↑ Back to the top


Keywords: kbwebserver, kbideproject, kbfirewall, kberrmsg, kbprb, KB831685

↑ Back to the top

Article Info
Article ID : 831685
Revision : 7
Created on : 4/25/2007
Published on : 4/25/2007
Exists online : False
Views : 442