title: Why is my WCF wshttpbinding client doesn't work at another computer?
body: <p>First, i host my wcf service in winform and i try to use wsHttpBinding. My client application work only in my development computer. Why is my WCF wshttpbinding client doesn't work at another computer? in another computer it showed "the caller was not authenticated by the service" when i execute the service</p>
  
  <p>Here is my WCF winform host configuration (app.config) :</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
      &lt;startup&gt; 
          &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
      &lt;/startup&gt;
      &lt;connectionStrings&gt;
        &lt;add name="DBCS"
             connectionString="data source=localhost;DataBase=LatihanSP;Integrated Security=SSPI"
             providerName="System.Data.SqlClient" /&gt;
      &lt;/connectionStrings&gt;
      &lt;system.serviceModel&gt;
          &lt;behaviors&gt;
              &lt;serviceBehaviors&gt;
                  &lt;behavior name="XServerSvcBehavior"&gt;
                      &lt;serviceDebug includeExceptionDetailInFaults="true" /&gt;
                      &lt;serviceMetadata httpGetEnabled="true" /&gt;
                  &lt;/behavior&gt;
              &lt;/serviceBehaviors&gt;
          &lt;/behaviors&gt;
          &lt;services&gt;
              &lt;service behaviorConfiguration="XServerSvcBehavior" name="ServerTier.ServiceClient"&gt;
                  &lt;endpoint address="" binding="wsHttpBinding" bindingConfiguration=""
                      name="XServerSvcBasicHttpEndPoint" contract="ServerTier.IServiceClient" /&gt;
                  &lt;endpoint address="mex" binding="mexHttpBinding" bindingConfiguration=""
                      name="XServerSvcMexHttpEndPoint" contract="IMetadataExchange" /&gt;
                  &lt;host&gt;
                      &lt;baseAddresses&gt;
                          &lt;add baseAddress="http://localhost:7777/SampleSvc" /&gt;
                      &lt;/baseAddresses&gt;
                  &lt;/host&gt;
              &lt;/service&gt;
          &lt;/services&gt;
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>And here is my client app.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
      &lt;startup&gt; 
          &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /&gt;
      &lt;/startup&gt;
      &lt;system.serviceModel&gt;
          &lt;bindings&gt;
              &lt;wsHttpBinding&gt;
                  &lt;binding name="XServerSvcBasicHttpEndPoint" /&gt;
              &lt;/wsHttpBinding&gt;
          &lt;/bindings&gt;
          &lt;client&gt;
              &lt;endpoint address="http://localhost:7777/SampleSvc" binding="wsHttpBinding"
                  bindingConfiguration="XServerSvcBasicHttpEndPoint" contract="ServiceRef.IServiceClient"
                  name="XServerSvcBasicHttpEndPoint"&gt;
                  &lt;identity&gt;
                      &lt;userPrincipalName value="Kevin-EDP\Kevin" /&gt;
                  &lt;/identity&gt;
              &lt;/endpoint&gt;
          &lt;/client&gt;
      &lt;/system.serviceModel&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>i try to change the userPrincipalName value to the name of the computer, still my client won't work, when i execute the service, it showed up "the caller was not authenticated by the service"
  i am really sure my code is working, when i use basicHttpBinding, and when i look some solution over the internet, most of people suggest to use basicHttpBinding, but that's not the answer i want, i want to use wsHttpBinding for security reason</p>
  
  <p>help me out guys, i am stuck almost 3 days, still can't figure it out</p>