From: Brady on
Hello all. I have a web service that hangs an entire application pool
whenever I receive this event viewer message: "Server cannot clear
headers after HTTP headers have been sent". Since the error type is
"Warning" and not "Error" I am at a loss why the application pool
doesn't recycle automatically or just bypass the invalid request and
continue processing. I do have application pool health configured so
the pool should be recycling because of no response but it doesn't. I
posted the debug diagnostics report from this case on September 20 but
have not had any comments. Please let me know if I can post more
information to clarify the situation.

Thanks in advance,


Category : Web Event
Computer : ServFarm1
Date : 2007-09-21 06:57:38
Description : Event code: 3005 Event message: An unhandled
exception has occurred. Event time: 9/21/2007 6:57:38 AM Event time
(UTC): 9/21/2007 11:57:38 AM Event ID:
8fa01973a5fb4ac5869be8565a75151f Event sequence: 18 Event occurrence:
1 Event detail code: 0 Application information: Application domain: /
LM/W3SVC/1/Root/PRO_WEB14-1-128348491719785556 Trust level: Full
Application Virtual Path: /PRO_WEB14 Application Path: C:\PROWEB\PRO
\WEB14\ Machine name: ServFarm1 Process information: Process ID: 1548
Process name: w3wp.exe Account name: NT AUTHORITY\NETWORK SERVICE
Exception information: Exception type: HttpException Exception
message: Server cannot clear headers after HTTP headers have been
sent. Request information: Request URL: https://NAVIGATOR/PRO_WEB14/WEB14.asmx
Request path: /PRO_WEB14/WEB14.asmx User host address:
User: Is authenticated: False Authentication Type: Thread account
name: NT AUTHORITY\NETWORK SERVICE Thread information: Thread ID: 11
Thread account name: NT AUTHORITY\NETWORK SERVICE Is impersonating:
False Stack trace: at System.Web.HttpResponse.ClearHeaders() at
e, Stream outputStream) at
e) at
context) at
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step,
Boolean& completedSynchronously) Custom event details:
EventID : 1309
Logfile : Application
MessageDLL : aspnet_rc.dll
Source : ASP.NET 2.0.50727.0
Type : Warning
User : N/A