WCF NamedPipe CommunicationException - “The pipe has been ended. (109, 0x6d).”

前端 未结 9 1313
没有蜡笔的小新
没有蜡笔的小新 2020-12-16 13:18

I am writing a Windows Service with accompanying \"status tool.\" The service hosts a WCF named pipe endpoint for inter-process communication. Through the named pipe, the

9条回答
  •  既然无缘
    2020-12-16 13:37

    Had the same issue There was an error reading from the pipe: Unrecognized error 109 (0x6d).

    • One reason was inconsistent binding between client and server ... (no communication)
    • The other intermittent issue was time-out related.

    Both had the same top error message.

    Increasing the time out in the server and client binding stopped issue from reappearing.

    Binding time out that was set too low:

    sendTimeout="00:00:05" receiveTimeout="00:00:05"
    

    Stack trace: at System.ServiceModel.Channels.StreamConnection.Read(Byte[] buffer, Int32 offset, Int32 size, TimeSpan timeout) at System.ServiceModel.Channels.SessionConnectionReader.Receive(TimeSpan timeout) at System.ServiceModel.Channels.SynchronizedMessageSource.Receive(TimeSpan timeout) at System.ServiceModel.Channels.TransportDuplexSessionChannel.Receive(TimeSpan timeout) at System.ServiceModel.Channels.TransportDuplexSessionChannel.TryReceive(TimeSpan timeout, Message& message) at System.ServiceModel.Dispatcher.DuplexChannelBinder.Request(Message message, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout) at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs) at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation) at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

提交回复
热议问题