Microsoft KB Archive/320072

= PRB: ASP.NET Web Application Exceeds Maximum Number of Supported Connections Under a Single-User Scenario =

Article ID: 320072

Article Last Modified on 8/12/2003

-

APPLIES TO

 Microsoft ASP.NET 1.1, when used with:  Microsoft Windows XP Professional

 Microsoft Windows 2000 Standard Edition  Microsoft ASP.NET 1.0, when used with:  Microsoft Windows XP Professional

 Microsoft Windows 2000 Standard Edition</li></ul> </li></ul>

-

<div class="notice_section">

This article was previously published under Q320072

<div class="symptoms_section">

SYMPTOMS
When you develop ASP.NET Web applications on a computer that is running Microsoft Windows 2000 Professional or Microsoft Windows XP Professional, if that computer serves as the local Web server, the maximum supported connections are exceeded when you open the application locally in a single-user scenario.

You receive an error message that states that the server or the host is unavailable. For example, you may receive the following error message in your browser:

The page cannot be displayed

There are too many people accessing the Web site at this time.

HTTP 403.9 - Access Forbidden: Too many users are connected Internet Information Services

When you use Microsoft Internet Security and Acceleration (ISA) Server, you may receive the following error message in your browser:

64 - Host not available Internet Security and Acceleration Server

<div class="cause_section">

CAUSE
This problem occurs when you open the page because the proxy server holds onto connections under the following conditions:
 * You specify the network basic input/output system (NetBIOS) name of the local Web server in the URL.
 * You configure the browser to use a proxy server.
 * You do not select the Automatically Detect Settings and the Bypass proxy server for local addresses check boxes in the Local Area Network (LAN) Settings dialog box.

When the proxy server holds onto connections, the connections exceed the number of connections that are supported.

<div class="resolution_section">

RESOLUTION
To resolve this problem, click to select the Bypass proxy server for local addresses check box when you develop ASP.NET Web applications on a local Web server. As a result, the proxy server does not have to be involved when you open the application that is served up by the local Web server.

You can also use  in the URL instead of the NetBIOS name of the local computer when you open the application locally. However, you must still click to select the Bypass proxy server for local addresses check box. If you do not select this check box, you may receive an &quot;HTTP Error 502: Proxy Error&quot; error message.

<div class="status_section">

STATUS
This behavior is by design.

<div class="moreinformation_section">

Steps to Reproduce the Behavior
<ol> Follow these steps to create a new ASP.NET Web application: <ol style="list-style-type: lower-alpha;"> Start Microsoft Visual Studio .NET.</li> On the File menu, point to New, and then click Project.</li> Click Visual C# Projects or Visual Basic Projects under Project Types, and then click ASP.NET Web Application under Templates.</li> In the Location box, replace the default WebApplication name with MyWebApp. For example, if specify the local Web server as &quot;http:// ,&quot; the Location box appears as follows:

http:// /MyWebApp

</li></ol> </li> Follow these steps to add a new Web Form to your project: <ol style="list-style-type: lower-alpha;"> In Solution Explorer, right-click the project node, point to Add, and then click Add Web Form.</li> In the Name box, type SamplePage.aspx, and then click Open.</li> Drag an ASP.NET Button server control from the Web Forms section of the toolbox to the page.</li> On the File menu, click Save All to save the Web Form and other files that are associated with the project.</li> On the Build menu in the Visual Studio .NET integrated development environment (IDE), click Build Solution.</li></ol> </li> Follow these steps to configure the connection settings in your browser: <ol style="list-style-type: lower-alpha;"> On the Tools menu in the Visual Studio .NET IDE, click Options.</li> Expand the Projects node in the options tree, and then click Web Settings.</li> <li>In the Web Server Connection area, click Connection Settings.</li> <li>In the Internet Properties dialog box, click LAN Settings.</li> <li>In the Local Area Network (LAN) Settings dialog box, click to clear the Bypass proxy server for local addresses check box.</li> <li>If Auto Discovery is enabled on the proxy server, and if Web Proxy AutoDiscovery (WPAD) is supported, click to clear the Automatically Detect Settings check box.</li></ol> </li> <li>In Solution Explorer, right-click the .aspx page, and then click View in Browser.</li> <li>Click the button on the page repeatedly to make the page post back to the server. After you click the button ten times, you receive an error message that states that the host or the server is unavailable.</li></ol>

<div class="references_section">