title: Nlog ConnectionAborted and ConnectionReset
body: <p>I have some project that uses Nlog for logging exceptions. It worked normally about 2 years. Recently, I've got the following messages:</p>
  
  <pre><code> NLog.NLogRuntimeException: Exception occurred in NLog ---&gt; System.IO.IOException: Error: ConnectionAborted
     --- End of inner exception stack trace ---
     at NLog.LoggerImpl.&lt;&gt;c__DisplayClass1.&lt;Write&gt;b__0(Exception ex)
     at NLog.Internal.SingleCallContinuation.Function(Exception exception)
     at NLog.Targets.NetworkTarget.&lt;&gt;c__DisplayClasse.&lt;Write&gt;b__9(Exception ex)
     at NLog.Targets.NetworkTarget.&lt;&gt;c__DisplayClass1b.&lt;ChunkedSend&gt;b__1a(Exception ex)
     at NLog.Internal.NetworkSenders.TcpNetworkSender.SocketOperationCompleted(Object sender, SocketAsyncEventArgs e)
     at NLog.Internal.NetworkSenders.TcpNetworkSender.ProcessNextQueuedItem()
     at NLog.Internal.NetworkSenders.TcpNetworkSender.DoSend(Byte[] bytes, Int32 offset, Int32 length, AsyncContinuation asyncContinuation)
     at NLog.Internal.NetworkSenders.NetworkSender.Send(Byte[] bytes, Int32 offset, Int32 length, AsyncContinuation asyncContinuation)
     at NLog.Targets.NetworkTarget.&lt;&gt;c__DisplayClass1b.&lt;ChunkedSend&gt;b__1a(Exception ex)
     at NLog.Targets.NetworkTarget.ChunkedSend(NetworkSender sender, Byte[] buffer, AsyncContinuation continuation)
     at NLog.Targets.NetworkTarget.Write(AsyncLogEventInfo logEvent)
     at NLog.Targets.Target.WriteAsyncLogEvent(AsyncLogEventInfo logEvent)
     at NLog.LoggerImpl.WriteToTargetWithFilterChain(TargetWithFilterChain targetListHead, LogEventInfo logEvent, AsyncContinuation onException)
     at NLog.LoggerImpl.Write(Type loggerType, TargetWithFilterChain targets, LogEventInfo logEvent, LogFactory factory)
     at NLog.Logger.WriteToTargets(LogEventInfo logEvent)
     at NLog.Logger.Log(LogEventInfo logEvent)
     at NLog.Internal.SingleCallContinuation.Function(Exception exception)
     at NLog.Targets.NetworkTarget.&lt;&gt;c__DisplayClasse.&lt;Write&gt;b__9(Exception ex)
     at NLog.Targets.NetworkTarget.&lt;&gt;c__DisplayClass1b.&lt;ChunkedSend&gt;b__1a(Exception ex)
     at NLog.Internal.NetworkSenders.TcpNetworkSender.SocketOperationCompleted(Object sender, SocketAsyncEventArgs e)
     at NLog.Internal.NetworkSenders.TcpNetworkSender.ProcessNextQueuedItem()
     at NLog.Internal.NetworkSenders.TcpNetworkSender.DoSend(Byte[] bytes, Int32 offset, Int32 length, AsyncContinuation asyncContinuation)
     at NLog.Internal.NetworkSenders.NetworkSender.Send(Byte[] bytes, Int32 offset, Int32 length, AsyncContinuation asyncContinuation)
     at NLog.Targets.NetworkTarget.&lt;&gt;c__DisplayClass1b.&lt;ChunkedSend&gt;b__1a(Exception ex)
     at NLog.Targets.NetworkTarget.ChunkedSend(NetworkSender sender, Byte[] buffer, AsyncContinuation continuation)
     at NLog.Targets.NetworkTarget.Write(AsyncLogEventInfo logEvent)
     at NLog.Targets.Target.WriteAsyncLogEvent(AsyncLogEventInfo logEvent)
     at NLog.LoggerImpl.WriteToTargetWithFilterChain(TargetWithFilterChain targetListHead, LogEventInfo logEvent, AsyncContinuation onException)
     at NLog.LoggerImpl.Write(Type loggerType, TargetWithFilterChain targets, LogEventInfo logEvent, LogFactory factory)
     at NLog.Logger.WriteToTargets(LogEventInfo logEvent)
     at NLog.Logger.Log(LogEventInfo logEvent) 
  </code></pre>
  
  <p>I've got 2 types of errors: <em>ConnectionReset</em> and <em>ConnectionAborted</em>. I can not find the cause of errors. What do these errors mean?</p>