Article ID: 913393 - Last Review: December 3, 2007 - Revision: 3.6

FIX: You receive an exception error message when you specify a Content-Length HTTP header that is larger than 2 GB in ASP.NET 2.0

On This Page

Expand all | Collapse all

SYMPTOMS

In Microsoft ASP.NET 2.0, when you try to use the TransmitFile function to specify a Content-Length HTTP header that is larger than 2 gigabytes (GB), you receive the following exception error message:
Value was either too large or too small for an Int32. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.OverflowException: Value was either too large or too small for an Int32.
Additionally, you may experience a problem with application pool restarts under a heavy load. This problem can cause a decrease in performance on a server that is running Microsoft Internet Information Services (IIS) and an ASP.NET Web application.

CAUSE

This problem occurs when ASP.NET 2.0 tries to parse the value of the Content-Length HTTP header as an Int32 data type. Therefore, if the value of the header is more than the maximum value of an Int32 data type, an overflow exception occurs. The maximum value of an Int32 data type is 2,147,483,647.

RESOLUTION

Hotfix information



A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might 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 download this hotfix from the MSDN Code Gallery, visit the following Microsoft Web site:
http://code.msdn.microsoft.com/KB913393 (http://code.msdn.microsoft.com/KB913393)

Note The MSDN Code Gallery displays the languages for which the hotfix is available. If you do not see your language listed, it is because the Code Gallery resource page is not available for that language.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft Web site:
http://support.microsoft.com/contactus/?ws=support (http://support.microsoft.com/contactus/?ws=support)

Prerequisites

You must have the .NET Framework 2.0 installed on the computer to apply this hotfix.

Restart requirement

You must restart the computer if any .NET Framework files are being used.

Hotfix replacement information

This hotfix replaces the hotfix that was described in Microsoft Knowledge Base article 911273.

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.
.NET Framework 2.0 for 32-bit systems
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.6223,04021-Jan-200610:08x86
System.web.dll 2.0.50727.625,025,79221-Jan-200610:08x86
Webengine.dll 2.0.50727.62299,52021-Jan-200610:08x86
.NET Framework 2.0 for 64-bit systems
Collapse this tableExpand this table
File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.6234,81621-Jan-200602:41x64
System.web.dll 2.0.50727.624,960,25621-Jan-200606:05x64
Webengine.dll 2.0.50727.62540,16021-Jan-200602:41x64

STATUS

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

MORE INFORMATION

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
824684  (http://support.microsoft.com/kb/824684/ ) Description of the standard terminology that is used to describe Microsoft software updates

REFERENCES

For more information, click the following article number to view the article in the Microsoft Knowledge Base:
913297  (http://support.microsoft.com/kb/913297/ ) FIX: Error message when you try to run a Web application that was built by using the .NET Framework 2.0: "Overwhelming changes have occurred"

APPLIES TO
  • Microsoft .NET Framework 2.0
Keywords: 
kbbug kbfix kbqfe kbpubtypekc KB913393
 

Article Translations

 

Related Support Centers