IIS 7, Asp.Net 4: Server cannot append header after HTTP headers have been sent?
Posted
by Amitabh
on Stack Overflow
See other posts from Stack Overflow
or by Amitabh
Published on 2010-05-19T10:13:24Z
Indexed on
2010/05/19
10:20 UTC
Read the original article
Hit count: 1116
I am getting the following warnings on the Event Log for a Asp.Net WebSite running on IIS 7.
Exception information:
Exception type: HttpException
Exception message: Server cannot append header after HTTP headers have been sent.
at System.Web.Hosting.ISAPIWorkerRequest.SendUnknownResponseHeader(String name, String value)
at System.Web.HttpResponse.WriteHeaders()
at System.Web.HttpResponse.Flush(Boolean finalFlush)
at System.Web.HttpRuntime.FinishRequest(HttpWorkerRequest wr, HttpContext context, Exception e)
I tried to debug the WebSite but it just does not show in debugger. The web page which has got this issue contains the following.
- Its a content page with a Master page.
- It has a grid inside an UpdatePanel which is Triggered by a Timer.
- On the specified time grid data is refreshed.
Everytime this happens we see a new warning in the EventLog. What is the best way to go about this issue?
© Stack Overflow or respective owner