Server Error in '/' Application.

Server cannot append header after HTTP headers have been sent.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Web.HttpException: Server cannot append header after HTTP headers have been sent.

Source Error:


Line 47: 				.ContentType = mMedia.MimeType
Line 48: 				.WriteFile(strImagePath)
Line 49: 				.Flush()
Line 50: 				.Clear()
Line 51: 			End With

Source File: D:\hshome\willowtip\willowtip.com\tools\Image.ashx    Line: 49

Stack Trace:


[HttpException (0x80004005): Server cannot append header after HTTP headers have been sent.]
   System.Web.HttpResponse.AppendHeader(String name, String value) +2901605
   blowery.Web.HttpCompress.CompressingFilter.WriteHeaders() +51
   blowery.Web.HttpCompress.GZipFilter.Write(Byte[] buffer, Int32 offset, Int32 count) +21
   System.Web.HttpWriter.Filter(Boolean finalFiltering) +8854563
   System.Web.HttpResponse.Flush(Boolean finalFlush) +625
   System.Web.HttpResponse.Flush() +20
   Image.ProcessRequest(HttpContext context) in D:\hshome\willowtip\willowtip.com\tools\Image.ashx:49
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.8669; ASP.NET Version:2.0.50727.5491