title: The operation cannot be completed because the pipe was closed. This may have been caused by the application on the other end of the pipe exiting
body: <p>I have WCF application and I added a client to consume the service. there is another  service written by another developer that sends message to my service.
  My service is hosted locally and opened port for access. my service acceps the request from the other  service and logs the message.</p>
  
  <p>But I am getting this error : The operation cannot be completed because the pipe was closed.  This may have been caused by the application on the other end of the pipe exiting.
  My service is installed locally and is started. </p>
  
  <p>I tried telenet but it also throws error : Connection to host lost...</p>
  
  <p>Service class</p>
  
  <pre><code>    namespace InboundMessage.Service;
      Operator: IOperator {
  
      }
      namespace InboundMessage.Service;
      IOperator {
  
      }
  </code></pre>
  
  <p>App.config</p>
  
  <pre><code>    &lt;configuration&gt;
        &lt;system.web&gt;
          &lt;compilation debug="true"&gt;
          &lt;/compilation&gt;
        &lt;/system.web&gt;
        &lt;system.serviceModel&gt;
          &lt;behaviors&gt;
            &lt;serviceBehaviors&gt;
              &lt;behavior name="meta"&gt;
                &lt;serviceMetadata httpGetEnabled="true"/&gt;
                &lt;serviceDebug includeExceptionDetailInFaults="true"/&gt;
              &lt;/behavior&gt;
            &lt;/serviceBehaviors&gt;
          &lt;/behaviors&gt;
          &lt;services&gt;
            &lt;service name="InboundMessage.Service.Operator" behaviorConfiguration="meta" &gt;
              &lt;endpoint address="basic" binding="basicHttpBinding" contract="InboundMessage.Service.IOperator"/&gt;
              &lt;endpoint address="mex" binding="mexHttpBinding"  contract="IMetadataExchange" /&gt;
              &lt;host&gt;
                &lt;baseAddresses&gt;
                             &lt;add baseAddress = "http://X:Port/InboundMessage.Service/"/&gt;
                &lt;/baseAddresses&gt;
              &lt;/host&gt;
            &lt;/service&gt;
          &lt;/services&gt;
        &lt;/system.serviceModel&gt;
        &lt;startup&gt;
          &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
        &lt;/startup&gt;
      &lt;/configuration&gt;
  </code></pre>
  
  <p>Client </p>
  
  <p>App.config</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8" ?&gt;
      &lt;configuration&gt;
  
        &lt;system.serviceModel&gt;
          &lt;bindings&gt;
            &lt;basicHttpBinding&gt;
  
              &lt;binding name="InboundMessage.Service" /&gt;
  
            &lt;/basicHttpBinding&gt;
          &lt;/bindings&gt;
          &lt;client&gt;
            &lt;endpoint address="http://X:port/InboundMessage.Service/"
              binding="basicHttpBinding" bindingConfiguration="InboundMessage.Service"
              contract="IMetadataExchange" name="InboundMessage.Service" /&gt;
  
  
          &lt;/client&gt;
        &lt;/system.serviceModel&gt;
      &lt;/configuration&gt;
  </code></pre>