FIX: Application may stop responding after several HTTP requests are aborted if you use the HttpWebRequest class to send requests in the .NET Framework

Article translations Article translations
Article ID: 2497453 - View products that this article applies to.
Expand all | Collapse all

On This Page

SYMPTOMS

Consider the following scenario:
  • You have a Microsoft .NET Framework 2.0-based or Microsoft .NET Framework 4-based application.
  • The application uses the System.Net.HttpWebRequest class to send HTTP requests to a remote host.
  • The remote host uses the negotiation or NTLM authentication.
  • Several requests are aborted. Or, a time-out issue occurs for several requests.
In this scenario, the application may stop responding.

Note When this issue occurs, you can generate a dump file for the hung process. If you analyze the dump file by using a debugger, the following call stacks is displayed. The call stacks indicate that multiple requests are waiting to receive a connection to the remote host. However, the maximum number of connections to the remote host is reached. Therefore, the requests stop responding until a time out occurs.
Child-SP         RetAddr          Call Site
[Child-SP]       [RetAddr]        System.Threading.WaitHandle.WaitOne(Int64, Boolean)
[Child-SP]       [RetAddr]        System.Net.ConnectionGroup.FindConnectionAuthenticationGroup(System.Net.HttpWebRequest, System.String)
[Child-SP]       [RetAddr]        System.Net.ConnectionGroup.FindConnection(System.Net.HttpWebRequest, System.String)
[Child-SP]       [RetAddr]        System.Net.ServicePoint.SubmitRequest(System.Net.HttpWebRequest, System.String)
[Child-SP]       [RetAddr]        System.Net.HttpWebRequest.SubmitRequest(System.Net.ServicePoint)

CAUSE

This issue occurs because the HttpWebRequest class does not unlock the underlying connections to the remote host if several requests are aborted.

When an HttpWebRequest class locks a connection to a remote host that uses the negotiation or NTLM authentication, other requests cannot use the connection until the previous request is completed and the connection is unlocked. However, the previous request may be aborted while the connection is locked. Therefore, the connection resource is not released in the connection group, and no new connections for requests can be distributed when the connection group limit is reached.

RESOLUTION

Hotfix information

A supported hotfix is now available from Microsoft. However, it is intended to correct only the problem that is described in this article. Apply it only to systems that are experiencing this specific problem. This hotfix may receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

To resolve this problem immediately, contact Microsoft Customer Support Services to obtain the hotfix. For a complete list of Microsoft Customer Support Services telephone numbers and information about support costs, visit the following Microsoft website:
http://support.microsoft.com/contactus/?ws=support
Note In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.

Prerequisites

To apply this hotfix, you must have one of the following products installed on one of the associated operating system:
  • Microsoft .NET Framework 2.0 Service Pack 2 (SP2) on one of the following operating systems:
    • Windows Vista Service Pack 2 (SP2)
    • Windows Server 2008 Service Pack 2 (SP2)
    • Windows 7 or Windows 7 Service Pack 1 (SP1)
    • Windows Server 2008 R2 or Windows Server 2008 R2 Service Pack 1 (SP1)
  • Microsoft .NET Framework 4 for an x64-based version of one of the following operating systems:
    • Windows XP
    • Windows Server 2003
    • Windows Vista
    • Windows Server 2008
    • Windows 7
    • Windows Server 2008 R2

Restart requirement

You must restart the computer after you apply this hotfix if the affected files are being used.

We recommend that you close all instances of applications that use the .NET Framework before you install this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

File information

The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.
For all supported x86-based versions of the .NET Framework 4.0 for Windows XP, for Windows Server 2003, for Windows Vista, for Windows Server 2008, and for Windows 7
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll4.0.30319.4483,511,11228-Mar-201105:33x86
For all supported x64-based versions of the .NET Framework 4.0 for Windows XP, for Windows Server 2003, for Windows Vista, for Windows Server 2008, for Windows 7, and for Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll4.0.30319.4483,511,11228-Mar-201105:33x86
For all supported IA-64-based versions of the .NET Framework 4.0 for Windows Server 2003, for Windows Server 2008, and for Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll4.0.30319.4483,511,11228-Mar-201105:33x86
For all supported x86-based versions of the .NET Framework 2.0 for Windows Vista SP2 and for Windows Server 2008 SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll2.0.50727.56603,190,78424-Mar-201110:53x86
For all supported x64-based versions of the .NET Framework 2.0 for Windows Vista SP2 and for Windows Server 2008 SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll2.0.50727.56603,190,78424-Mar-201110:51x86
For all supported IA-64-based versions of the .NET Framework 2.0 for Windows Server 2008 SP2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll2.0.50727.56603,190,78424-Mar-201111:20x86
For all supported x86-based versions of the .NET Framework 2.0 for Windows 7
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll2.0.50727.56603,190,78429-Mar-201122:33x86
For all supported x64-based versions of the .NET Framework 2.0 for Windows 7 and for Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll2.0.50727.56623,190,78429-Mar-201122:30x86
For all supported IA-64-based versions of the .NET Framework 2.0 for  for Windows Server 2008 R2
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll2.0.50727.56623,190,78429-Mar-201122:24x86
For all supported x86-based versions of the .NET Framework 2.0 for Windows 7 SP1
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll2.0.50727.56603,190,78424-Mar-201101:19x86
For all supported x64-based versions of the .NET Framework 2.0 for Windows 7 SP1 and for Windows Server 2008 R2 SP1
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll2.0.50727.56603,190,78424-Mar-201101:19x86
For all supported IA-64-based versions of the .NET Framework 2.0 for Windows Server 2008 R2 SP1
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
System.dll2.0.50727.56603,190,78424-Mar-201101:12x86

STATUS

Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

MORE INFORMATION

Additional file information

Additional files for x86-based versions of Windows Vista SP2 and of Windows Server 2008 SP2
Collapse this tableExpand this table
File nameMsil_system_b77a5c561934e089_6.0.6002.22620_none_c3a01c5575eedae0.manifest
File versionNot Applicable
File size10,999
Date (UTC)24-Mar-2011
Time (UTC) 15:39
Additional files for x64-based versions of Windows Vista SP2 and of Windows Server 2008 SP2
Collapse this tableExpand this table
File nameAmd64_netfx-system_b03f5f7f11d50a3a_6.0.6002.22620_none_d3e3919b5b2306b5.manifest
File versionNot Applicable
File size12,177
Date (UTC)24-Mar-2011
Time (UTC) 15:43
File nameMsil_system_b77a5c561934e089_6.0.6002.22620_none_c3a01c5575eedae0.manifest
File versionNot Applicable
File size10,999
Date (UTC)24-Mar-2011
Time (UTC)15:39
Additional files for IA-64-based versions of Windows Server 2008 SP2
Collapse this tableExpand this table
File nameIa64_netfx-system_b03f5f7f11d50a3a_6.0.6002.22620_none_1b90a6346f9f679f.manifest
File versionNot Applicable
File size12,144
Date (UTC)24-Mar-2011
Time (UTC) 15:36
File nameMsil_system_b77a5c561934e089_6.0.6002.22620_none_c3a01c5575eedae0.manifest
File versionNot Applicable
File size10,999
Date (UTC)24-Mar-2011
Time (UTC)15:39
Additional files for x86-based versions of Windows 7
Collapse this tableExpand this table
File nameMsil_system_b77a5c561934e089_6.1.7600.20935_none_9844719031f02167.manifest
File versionNot Applicable
File size2,587
Date (UTC)30-Mar-2011
Additional files for x64-based versions of Windows 7 and of Windows Server 2008 R2
Collapse this tableExpand this table
File nameAmd64_netfx-system_b03f5f7f11d50a3a_6.1.7600.20935_none_a887e6d617244d3c.manifest
File versionNot Applicable
File size2,096
Date (UTC)30-Mar-2011
Time (UTC) 06:06
File nameMsil_system_b77a5c561934e089_6.1.7600.20935_none_9844719031f02167.manifest
File versionNot Applicable
File size2,587
Date (UTC)30-Mar-2011
Time (UTC)05:14
Additional files for IA-64-based versions of Windows Server 2008 R2
Collapse this tableExpand this table
File nameIa64_netfx-system_b03f5f7f11d50a3a_6.1.7600.20935_none_f034fb6f2ba0ae26.manifest
File versionNot Applicable
File size2,095
Date (UTC)30-Mar-2011
Time (UTC) 06:06
File nameMsil_system_b77a5c561934e089_6.1.7600.20935_none_9844719031f02167.manifest
File versionNot Applicable
File size2,587
Date (UTC)30-Mar-2011
Time (UTC)05:14
Additional files for x86-based version of Windows 7 SP1
Collapse this tableExpand this table
File nameMsil_system_b77a5c561934e089_6.1.7601.21691_none_9826c7e2323b6310.manifest
File versionNot Applicable
File size2,587
Date (UTC)24-Mar-2011
Time (UTC) 07:41
Additional files for x64-based versions of Windows 7 SP1 and of Windows Server 2008 R2 SP1
Collapse this tableExpand this table
File nameAmd64_netfx-system_b03f5f7f11d50a3a_6.1.7601.21691_none_a86a3d28176f8ee5.manifest
File versionNot Applicable
File size2,096
Date (UTC)24-Mar-2011
Time (UTC) 08:37
File nameMsil_system_b77a5c561934e089_6.1.7601.21691_none_9826c7e2323b6310.manifest
File versionNot Applicable
File size2,587
Date (UTC)24-Mar-2011
Time (UTC)07:41
Additional files for IA-64-based versions of Windows Server 2008 R2 SP1
Collapse this tableExpand this table
File nameIa64_netfx-system_b03f5f7f11d50a3a_6.1.7601.21691_none_f01751c12bebefcf.manifest
File versionNot Applicable
File size2,095
Date (UTC)24-Mar-2011
Time (UTC)08:31
File nameMsil_system_b77a5c561934e089_6.1.7601.21691_none_9826c7e2323b6310.manifest
File versionNot Applicable
File size2,587
Date (UTC)24-Mar- 2011
Time (UTC)07:41

Properties

Article ID: 2497453 - Last Review: April 15, 2011 - Revision: 3.0
APPLIES TO
  • Microsoft .NET Framework 2.0 Service Pack 2
  • Microsoft .NET Framework 4
Keywords: 
kbqfe kbhotfixserver kbfix kbexpertiseadvanced kbsurveynew KB2497453

Give Feedback

 

Contact us for more help

Contact us for more help
Connect with Answer Desk for expert help.
Get more support from smallbusiness.support.microsoft.com