Microsoft KB Archive/927128

= A new overload is added to the TransmitFile method of the HttpResponse class in ASP.NET 2.0 =

Article ID: 927128

Article Last Modified on 12/7/2006

-

APPLIES TO


 * Microsoft ASP.NET 2.0

-





SUMMARY
A new overload for the TransmitFile method of the HttpResponse class is included in Microsoft ASP.NET 2.0. This new overload lets you specify an offset in the file. The new overload also lets you obtain the number of bytes to be sent.

The following shows the format of the new overload: HttpResponse.TransmitFile(String Filename, long offset, long length) Note
 * Filename is a placeholder for the name of the file to be written to the HTTP output.
 * Offset is a placeholder for the start position in the file.
 * Length is a placeholder for the total length to be transmitted.

If you specify 0 as the Offset parameter and -1 as the length parameter, the whole file is sent.



Hotfix information
A supported feature that modifies the product's default behavior is now available from Microsoft, but it is only intended to modify the behavior that this article describes. Apply it only to systems that specifically require it. This feature may receive additional testing. Therefore, if the system is not severely affected by the lack of this feature, we recommend that you wait for the next ASP.NET 2.0 service pack that contains this feature.

To obtain this feature immediately, contact Microsoft Product Support Services. For a complete list of Microsoft Product Support Services telephone numbers and information about support costs, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

Prerequisites
You must have Microsoft ASP.NET 2.0 installed to apply this hotfix.

Restart requirement
You must restart the computer after you apply this hotfix.

Hotfix replacement information
This hotfix replaces the following hotfixes:

911276 FIX: Error message when you try to go to an ASP.NET page by using a URL that contains Unicode characters: &quot;HTTP error 400 'bad request'&quot;

911300 FIX: Error message when you try to browse the root folder of a Web application that is built on the .NET Framework 2.0: &quot;Object reference not set to an instance of an object&quot;

913393 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

915782 FIX: You may receive an InvalidCastException error in an ASP.NET-connected Web application

918181 FIX: You receive a ThreadAbortException exception in an ASP.NET Web application that is based in the .NET Framework 2.0 when the Async page directive property is set to true

920283 FIX: An ASP.NET 2.0 Web application may not send content for a page that is updated when the Web server is running

920970 FIX: You may experience an unexpected AppDomain restart in an ASP.NET Web application that is based on the .NET Framework 2.0

922770 MS06-056: Vulnerability in ASP.NET 2.0 could allow for information disclosure

923707 FIX: Some characters in a text resource may not display correctly when you try to embed a text resource within a Web application that is built on the Microsoft .NET Framework 2.0

925248 FIX: Data in the POST request may be truncated to 49152 bytes in ASP.NET-connected application

925613 FIX: You receive an InvalidCastException error when you debug the dumps in the Windows SharePoint Services

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.

Microsoft .NET Framework 2.0, Itanium-based versions


MORE INFORMATION
For more information, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kbhotfixserver kbqfe kbpubtypekc KB927128

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.