This article has been archived. It is offered "as is" and will no longer be updated.
When you call the Response.ClearHeaders method in a custom HTTPModule that is registered with PreSendRequestHeaders, extra characters are returned. This problem occurs only on the first request or the first time that you make this call after you compile the application.
For the first request of a page, the compiler tries to do a batch compile and takes a different code path in the Response.Flush method. Later in the code, when you try to add chunkprefix and chunksuffix characters, they appear as extra characters in the output.
How to Obtain the Hotfix
This issue is fixed in the June 2003 ASP.NET Hotfix Package 1.1. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
821156 INFO: ASP.NET 1.1 June 2003 Hotfix Rollup Package
You cannot obtain this fix individually. You must install the rollup.
Note When you request this hotfix, you receive the rollup.
The English version of this hotfix has the file attributes (or later) 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 tool in Control Panel.
Copy the files that you created in steps 1, 2, and 3 to a virtual directory (vdir). Create a bin folder in this virtual directory, and then copy the Test.dll file to the bin folder.
View the Test.aspx page in your browser.
The expected text output is "Hello World". However, the result is "b Hello World 0 ".
After the page has been compiled one time, it returns the correct output for all later requests.To reproduce the behavior again, modify the Web.config file, re-save the file, and then view the Test.aspx page again.