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 28: 				.ContentType = mMedia.MimeType
Line 29: 				.WriteFile(strFilePath)
Line 30: 				.Flush()
Line 31: 				.Clear()
Line 32: 			End With

Source File: D:\hshome\willowtip\willowtip.com\tools\Download.ashx    Line: 30

Stack Trace:


[HttpException (0x80004005): Server cannot append header after HTTP headers have been sent.]
   System.Web.HttpResponse.AppendHeader(String name, String value) +9773879
   blowery.Web.HttpCompress.CompressingFilter.WriteHeaders() +64
   blowery.Web.HttpCompress.GZipFilter.Write(Byte[] buffer, Int32 offset, Int32 count) +21
   System.Web.HttpWriter.Filter(Boolean finalFiltering) +310
   System.Web.HttpResponse.Flush(Boolean finalFlush, Boolean async) +841
   System.Web.HttpResponse.Flush() +24
   Download.ProcessRequest(HttpContext context) in D:\hshome\willowtip\willowtip.com\tools\Download.ashx:30
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +195
   System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step) +50
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +73


Version Information: Microsoft .NET Framework Version:4.0.30319; ASP.NET Version:4.8.4042.0