title: Local service (The server has rejected the client credentials.)
body: <p>I have a simple setup, a WPF application running on the machine and a WCF service hosted within a Windows Service on the same machine (always on the same machine). When i debug on one computer i can easily access the local WCF Service. When i run it on another machine i get an error: </p>
  
  <p><strong><em>"The server has rejected the client credentials."</em></strong></p>
  
  <p>Some of my observations are, that at my local machine i have no domain/network. Its my home machine. When at a customers site, it will not run, and gives the above error. Anyone got any ideas on why this is different on these computers?</p>
  
  <p>/Brian</p>
  
  <p><strong>Edit:</strong></p>
  
  <p>Contract:</p>
  
  <pre><code>[ServiceContract(Namespace = "http://www.greenweb.dk/motiondetection")]
      public interface IMotionDetection
      {
          [OperationContract]
          bool GetMotionDetected();
      }
  </code></pre>
  
  <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;client /&gt;
      &lt;services&gt;
        &lt;service name="GreenWebPlayerMotionDetectionService.MotionDetected" behaviorConfiguration="MotionDetectionBehavior"&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="net.pipe://localhost/GreenWebMotionDetectionService/"/&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
          &lt;endpoint address="" contract="GreenWebPlayerMotionDetectionService.IMotionDetection" binding="netNamedPipeBinding"/&gt;
          &lt;endpoint address="mex" contract="IMetadataExchange" binding="mexNamedPipeBinding"/&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="MotionDetectionBehavior"&gt;
            &lt;serviceMetadata httpGetEnabled="false"/&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt; 
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>Edit 2</strong>
  Security will not be a problem, no security is neeed, the computer on which it runs is already isolated from everything else.</p>
  
  <p><strong>EDIt 3</strong>
  Have set <code>&lt;security mode="None"&gt;&lt;/security&gt;</code> on both the client and the server, now im getting this error: "There was an error reading from the pipe: Unrecognized error 109 (0x6)"</p>
  
  <p>I can't figure out whether this is a step in the right direction</p>