title: (WCF) The caller was not authenticated by the service
body: <p>I have created WCF service + client and deployed the service to another PC. Service is running. But when I execute client in debug mode through Visual Studio I get the error: The caller was not authenticated by the service.
  Both PCs, client and server are on the same local net. </p>
  
  <p>Server side (service)</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;services&gt;
        &lt;!-- This section is optional with the new configuration model  
             introduced in .NET Framework 4. --&gt;
        &lt;service name="Digiteq.Services.LabSat.LabSatService"
                 behaviorConfiguration="LabSatServiceBehavior"&gt;
          &lt;host&gt;
            &lt;baseAddresses&gt;
              &lt;add baseAddress="http://localhost:8000/LabSat3/service"/&gt;
            &lt;/baseAddresses&gt;
          &lt;/host&gt;
          &lt;!-- this endpoint is exposed at the base address provided by host: http://localhost:8733/LabSat/service  --&gt;
          &lt;endpoint address=""
                    binding="wsHttpBinding"
                    contract="Digiteq.Services.LabSat.ILabSat" /&gt;
          &lt;!-- the mex endpoint is exposed at http://localhost:8733/LabSat3/service/mex --&gt;
          &lt;endpoint address="mex"
                    binding="mexHttpBinding"
                    contract="IMetadataExchange" /&gt;
        &lt;/service&gt;
      &lt;/services&gt;
      &lt;behaviors&gt;
        &lt;serviceBehaviors&gt;
          &lt;behavior name="LabSatServiceBehavior"&gt;
            &lt;serviceMetadata httpGetEnabled="true"/&gt;
            &lt;serviceDebug includeExceptionDetailInFaults="False"/&gt;
          &lt;/behavior&gt;
        &lt;/serviceBehaviors&gt;
      &lt;/behaviors&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>Client side config file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;system.serviceModel&gt;
      &lt;bindings&gt;
        &lt;wsHttpBinding&gt;
          &lt;binding name="WSHttpBinding_ILabSat" closeTimeout="00:01:00"
              openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
              bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
              messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
              allowCookies="false"&gt;
            &lt;readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" /&gt;
            &lt;reliableSession ordered="true" inactivityTimeout="00:10:00"
                enabled="false" /&gt;
            &lt;security mode="Message"&gt;
              &lt;transport clientCredentialType="Windows" proxyCredentialType="None"
                  realm="" /&gt;
              &lt;message clientCredentialType="Windows" negotiateServiceCredential="true"
                  algorithmSuite="Default" establishSecurityContext="true" /&gt;
            &lt;/security&gt;
          &lt;/binding&gt;
        &lt;/wsHttpBinding&gt;
      &lt;/bindings&gt;
      &lt;client&gt;
        &lt;endpoint address="http://192.168.228.65:8000/LabSat3/service" binding="wsHttpBinding"
            bindingConfiguration="WSHttpBinding_ILabSat" contract="ILabSat"
            name="WSHttpBinding_ILabSat"&gt;
          &lt;identity&gt;
            &lt;servicePrincipalName value="host/MBO-NEW" /&gt;
          &lt;/identity&gt;
        &lt;/endpoint&gt;
      &lt;/client&gt;
    &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>