Nlog ConnectionAborted和ConnectionReset

时间:2017-01-20 05:34:08

标签: c# nlog

我有一些使用Nlog记录异常的项目。它通常工作大约2年。最近,我收到了以下消息:

 NLog.NLogRuntimeException: Exception occurred in NLog ---> System.IO.IOException: Error: ConnectionAborted
   --- End of inner exception stack trace ---
   at NLog.LoggerImpl.<>c__DisplayClass1.<Write>b__0(Exception ex)
   at NLog.Internal.SingleCallContinuation.Function(Exception exception)
   at NLog.Targets.NetworkTarget.<>c__DisplayClasse.<Write>b__9(Exception ex)
   at NLog.Targets.NetworkTarget.<>c__DisplayClass1b.<ChunkedSend>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.<>c__DisplayClass1b.<ChunkedSend>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.<>c__DisplayClasse.<Write>b__9(Exception ex)
   at NLog.Targets.NetworkTarget.<>c__DisplayClass1b.<ChunkedSend>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.<>c__DisplayClass1b.<ChunkedSend>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) 

我有两种类型的错误: ConnectionReset ConnectionAborted 。我找不到错误的原因。这些错误意味着什么?

0 个答案:

没有答案