title: There was an error writing to the pipe: Unrecognized error 232 (0xe8)
body: <p>I call a method in a WCF proxy, where the binding is named pipes. At the moment, the code fails with an exception (related to wmi - what the code does), but when I then execute another method in the same proxy, I get this error:</p>
  
  <p>There was an error writing to the pipe: Unrecognized error 232 (0xe8).</p>
  
  <p>Obviously, this doesn't help much. Stacktrace is:</p>
  
  <blockquote>
    <p>Server stack trace:     at
    System.ServiceModel.Channels.StreamConnection.BeginWrite(Byte[]
    buffer, Int32 offset, Int32 size, Boolean immediate, TimeSpan timeout,
    AsyncCallback callback, Object state)    at
    System.ServiceModel.Channels.FramingDuplexSessionChannel.SendAsyncResult.WriteCore()
    at
    System.ServiceModel.Channels.FramingDuplexSessionChannel.SendAsyncResult..ctor(FramingDuplexSessionChannel
    channel, Message message, TimeSpan timeout, AsyncCallback callback,
    Object state)    at
    System.ServiceModel.Channels.FramingDuplexSessionChannel.OnBeginSend(Message
    message, TimeSpan timeout, AsyncCallback callback, Object state)    at
    System.ServiceModel.Channels.OutputChannel.BeginSend(Message message,
    TimeSpan timeout, AsyncCallback callback, Object state)    at
    System.ServiceModel.Dispatcher.DuplexChannelBinder.BeginRequest(Message
    message, TimeSpan timeout, AsyncCallback callback, Object state)    at
    System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartSend(Boolean
    completedSynchronously)    at
    System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureOpen(IAsyncResult
    result, Boolean completedSynchronously)    at
    System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureOpen(Boolean
    completedSynchronously)    at
    System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.FinishEnsureInteractiveInit(IAsyncResult
    result, Boolean completedSynchronously)    at
    System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.StartEnsureInteractiveInit()
    at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.Begin()
    at System.ServiceModel.Channels.ServiceChannel.BeginCall(String
    action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins,
    TimeSpan timeout, AsyncCallback callback, Object asyncState)    at
    System.ServiceModel.Channels.ServiceChannel.BeginCall(String action,
    Boolean oneway, ProxyOperationRuntime operation, Object[] ins,
    AsyncCallback callback, Object asyncState)    at
    System.ServiceModel.Channels.ServiceChannelProxy.InvokeBeginService(IMethodCallMessage
    methodCall, ProxyOperationRuntime operation)    at
    System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage
    message)</p>
    
    <p>Exception rethrown at [0]:     at
    System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage
    reqMsg, IMessage retMsg)    at
    System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp;
    msgData, Int32 type)    at x.xxx.xxxxx(String Path, AsyncCallback
    callback, Object state)    at x.xproxy.begininstall(String path,
    AsyncCallback callback, Object state) in
    C:\Users\project\AsyncProxy.cs:line 38    at
    xxx.MainForm.begininstall(Object sender, EventArgs e) in
    C:\Users\project\MainForm.cs:line 647    at
    XPrintV7.MainForm.b__e() in
    C:\Users\Gurdip\Desktop\xproject\MainForm.cs:line 664    at
    System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry
    tme)    at
    System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
    at System.Threading.ExecutionContext.runTryCode(Object userData)    at
    System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode
    code, CleanupCode backoutCode, Object userData)    at
    System.Threading.ExecutionContext.RunInternal(ExecutionContext
    executionContext, ContextCallback callback, Object state)    at
    System.Threading.ExecutionContext.Run(ExecutionContext
    executionContext, ContextCallback callback, Object state)    at
    System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry
    tme)    at System.Windows.Forms.Control.InvokeMarshaledCallbacks()</p>
  </blockquote>
  
  <p>What is the probable cause?</p>