4
SM v16 - Server cannot set status after HTTP headers have been sent
Problem reported by Rogelio Arosemena - 10/3/2017 at 2:41 PM
Submitted
I am viewing this error from time to time in the windows event viewer. Could you tell me what it should be?
 
Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 10/3/2017 3:50:13 PM 
Event time (UTC): 10/3/2017 8:50:13 PM 
Event ID: 3bb223eebefb42f0b27b1ce9580506bb 
Event sequence: 5871 
Event occurrence: 2 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/1/ROOT-4-131515192457158927 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\Program Files (x86)\SmarterTools\SmarterMail\MRS\ 
    Machine name: DB01 
 
Process information: 
    Process ID: 6180 
    Process name: w3wp.exe 
    Account name: NT AUTHORITY\NETWORK SERVICE 
 
Exception information: 
    Exception type: HttpException 
    Exception message: Server cannot set status after HTTP headers have been sent.
   at System.Web.HttpResponse.set_StatusCode(Int32 value)
   at System.Web.HttpResponseWrapper.set_StatusCode(Int32 value)
   at System.Web.Http.WebHost.HttpControllerHandler.<CopyResponseStatusAndHeadersAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.WebHost.HttpControllerHandler.<CopyResponseAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.WebHost.HttpControllerHandler.<ProcessRequestAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar)
   at System.Web.HttpTaskAsyncHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information: 
    Request URL: http://mail.inalambrik.com.ec/attachment/download?data=R2SXtCF6sxCBNie4ttcKNyL5qywORE7yDjqhHwAehbWsMX5PNamlDAjw/CCJ6IxGbrh1V/hpp8YjPgniM0KM8GgUobhENFacNtDBTNxXqeVkVUr6/76lvpodUC5DSW0/+FBUJ3KM30FRwo5qSnFc2yv3Q2qvX14f 
    Request path: /attachment/download 
    User host address: 200.124.240.253 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
 
Thread information: 
    Thread ID: 324 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at System.Web.HttpResponse.set_StatusCode(Int32 value)
   at System.Web.HttpResponseWrapper.set_StatusCode(Int32 value)
   at System.Web.Http.WebHost.HttpControllerHandler.<CopyResponseStatusAndHeadersAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.WebHost.HttpControllerHandler.<CopyResponseAsync>d__7.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.Http.WebHost.HttpControllerHandler.<ProcessRequestAsyncCore>d__0.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar)
   at System.Web.HttpTaskAsyncHandler.System.Web.IHttpAsyncHandler.EndProcessRequest(IAsyncResult result)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 
 

8 Replies

Reply to Thread
0
Rajmund Andruskevic Replied
Hi, somebody will reply there regarding this issue? We had same problem since September minor update.
0
Justas Spaicys Replied
The same issue here. Any ideas how to solve that problem?
0
Hariharan Ponnuvel Replied
this error cause when some one send mail with attachment. mail not received and this error only created in event viewer. Please help someone to resolve this issue. thanks
1
Sathiya R Replied
Same issue we also getting any solution?
1
echoDreamz Replied
I've reported this already, it has been fixed and should be in the update for today / tomorrow (hopefully). The 6555+ build will the fix for this.
0
Sathiya R Replied
Great, expecting next release because it causes server performance. sometimes application pool stuck in IIS
0
echoDreamz Replied
That is strange! We have thousands of these in our log every day and it has never caused any IIS issues.
0
echoDreamz Replied
EDIT: Ignore, this HTTP header error is different from the download one above.

Reply to Thread