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.

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


View products that this article applies to.

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.

↑ Back to the top


Resolution

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:

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: "HTTP error 400 'bad request'"
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: "Object reference not set to an instance of an object"
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, x86-based versions

File nameFile versionFile sizeDateTime
Aspnet_wp.exe2.0.50727.23229,96820-Oct-200621:44
System.web.dll2.0.50727.2325,029,88820-Oct-200621:44
Webengine.dll2.0.50727.232300,03220-Oct-200621:44

Microsoft .NET Framework 2.0, x64-based versions

File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.23241,74420-Oct-200617:11x64
System.web.dll2.0.50727.2324,968,44820-Oct-200617:15x64
Webengine.dll2.0.50727.232540,67220-Oct-200613:52x64
Aspnet_wp.exe2.0.50727.23229,96820-Oct-200621:44x86
System.web._dll2.0.50727.2325,029,88820-Oct-200621:44x86
Webengine.dll2.0.50727.232300,03220-Oct-200621:44x86

Microsoft .NET Framework 2.0, Itanium-based versions

File nameFile versionFile sizeDateTimePlatform
Aspnet_wp.exe2.0.50727.23280,65620-Oct-200618:03IA-64
System.web.dll2.0.50727.2324,599,80820-Oct-200618:03IA-64
Webengine.dll2.0.50727.232869,37620-Oct-200613:58IA-64
Aspnet_wp.exe2.0.50727.23229,96820-Oct-200621:44x86
System.web.dll2.0.50727.2325,029,88820-Oct-200621:44x86
Webengine.dll2.0.50727.232300,03220-Oct-200621:44x86

↑ Back to the top


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

↑ Back to the top


Properties

Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.

↑ Back to the top


Keywords: KB927128, kbpubtypekc, kbqfe, kbhotfixserver

↑ Back to the top

Article Info
Article ID : 927128
Revision : 4
Created on : 12/7/2006
Published on : 12/7/2006
Exists online : False
Views : 465