2
ASP.NET Event ID 1309 Event Code 3005
Question asked by Aaron Priest - 10/3/2019 at 11:20 AM
Unanswered
The server hosting our SmarterMail is reporting an event warning to the Windows Application log periodically.  There's maybe 20 events per day.  Server 2012 R2. The event is for ASP.NET 4.0.30319.0, event ID 1309 and the event details say:

Event code: 3005 
Event message: An unhandled exception has occurred. 
Event time: 10/2/2019 5:39:37 PM 
Event time (UTC): 10/2/2019 9:39:37 PM 
Event ID: aac7a63a541941d58218ba1e4b5f00c1 
Event sequence: 237 
Event occurrence: 2 
Event detail code: 0 
 
Application information: 
    Application domain: /LM/W3SVC/2/ROOT-1-132145258333168294 
    Trust level: Full 
    Application Virtual Path: / 
    Application Path: C:\Program Files (x86)\SmarterTools\SmarterMail\MRS\ 
    Machine name: MUKWA-MAIL 
 
Process information: 
    Process ID: 4480 
    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.Http.WebHost.HttpControllerHandler.<CopyResponseStatusAndHeadersAsync>d__31.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   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.ExceptionServices.ExceptionDispatchInfo.Throw()
   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.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)

 
 
Request information: 
    Request URL: https://mukwa-mail.sault.tribe:443/attachment/download?data=R2SXtCF6sxCKcV4I+R1IMtKpouwczrDHYEU1l+RohMd6eMND4U671KfcYnhyCt7Z3lbGcT8peZaTkAmdJ33Mt64NqG6PiGkzOj6TiSV00DSYb73w4NpxA2cuJCS2BEbxBefQygnochsQo7WxsaxgzQ== 
    Request path: /attachment/download 
    User host address: 10.21.118.42 
    User:  
    Is authenticated: False 
    Authentication Type:  
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
 
Thread information: 
    Thread ID: 20 
    Thread account name: NT AUTHORITY\NETWORK SERVICE 
    Is impersonating: False 
    Stack trace:    at System.Web.HttpResponse.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.ExceptionServices.ExceptionDispatchInfo.Throw()
   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.ExceptionServices.ExceptionDispatchInfo.Throw()
   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.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Web.TaskAsyncHelper.EndTask(IAsyncResult ar)
   at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   at System.Web.HttpApplication.ExecuteStepImpl(IExecutionStep step)
   at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
 
 
Custom event details: 

3 Replies

Reply to Thread
0
Kyle Kerst Replied
Employee Post
Hello Aaron, can you confirm what version of SmarterMail you are running in this environment? You may want to try the latest build to see if this clears up. If that doesn't help, I'd be on the lookout for security or proxy hardware/software that might be modifying the data as its leaving your server.
Kyle Kerst IT Coordinator SmarterTools Inc. www.smartertools.com
0
Aaron Priest Replied
Currently using SmarterMail Enterprise Edition version 16.3.6526.
Looks like our "Upgrade Protection" expired in March 2019.  I suppose if I want to troubleshoot this further we'll have to renew our license first.
0
Kyle Kerst Replied
Employee Post
Correct, but you may have luck in the meantime using Wireshark to scan incoming/outgoing traffic for signs of trouble such as retransmission, duplicate packets, etc. You can also try disabling any security software/hardware you have in place temporarily as well and see if these issues clear up. If you need some help getting this troubleshot I do recommend renewing M&S so we can get a ticket submitted. Thanks Aaron, have a great rest of your week!
Kyle Kerst IT Coordinator SmarterTools Inc. www.smartertools.com

Reply to Thread