Async Shutdown

classic Classic list List threaded Threaded
1 message Options
haf
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Async Shutdown

haf
Hi, I'm the author of NLog.RabbitMQ - an async target for NLog -- I'm getting this stack trace in web apps:
System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>/LM/W3SVC/8/ROOT/TheApplication-15-129854428765646406</AppDomain><Exception><ExceptionType>NLog.NLogRuntimeException, NLog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c</ExceptionType><Message>Asynchronous exception has occurred.</Message><StackTrace>   at NLog.Common.AsyncHelpers.RunSynchronously(AsynchronousAction action)
   at NLog.LogFactory.Flush(TimeSpan timeout)
   at NLog.LogFactory.Flush()
   at NLog.LogFactory.set_Configuration(LoggingConfiguration value)
   at NLog.LogManager.set_Configuration(LoggingConfiguration value)
   at NLog.LogManager.TurnOffLogging(Object sender, EventArgs args)</StackTrace><ExceptionString>NLog.NLogRuntimeException: Asynchronous exception has occurred. ---&amp;gt; System.TimeoutException: Timeout.
   --- End of inner exception stack trace ---
   at NLog.Common.AsyncHelpers.RunSynchronously(AsynchronousAction action)
   at NLog.LogFactory.Flush(TimeSpan timeout)
   at NLog.LogFactory.Flush()
   at NLog.LogFactory.set_Configuration(LoggingConfiguration value)
   at NLog.LogManager.set_Configuration(LoggingConfiguration value)
   at NLog.LogManager.TurnOffLogging(Object sender, EventArgs args)</ExceptionString><InnerException><ExceptionType>System.TimeoutException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Timeout.</Message><StackTrace>   at NLog.Common.AsyncHelpers.RunSynchronously(AsynchronousAction action)
   at NLog.LogFactory.Flush(TimeSpan timeout)
   at NLog.LogFactory.Flush()
   at NLog.LogFactory.set_Configuration(LoggingConfiguration value)
   at NLog.LogManager.set_Configuration(LoggingConfiguration value)
   at NLog.LogManager.TurnOffLogging(Object sender, EventArgs args)
</StackTrace><ExceptionString>System.TimeoutException: Timeout.</ExceptionString></InnerException></Exception></TraceRecord>
How do I go about making sure the shutdown works correctly? I'm currently doing as per this readme: https://github.com/haf/NLog.RabbitMQ
Loading...