title: 'System.ServiceModel.FaultException' occurred in mscorlib.dll
body: <p>I'm trying to get username by this code in Client App:</p>
  
  <pre><code>SimpleService.SimpleServiceClient client = new SimpleService.SimpleServiceClient();
  MessageBox.Show(client.GetUserName());
  </code></pre>
  
  <p>The service method is:</p>
  
  <pre><code>public string GetUserName()
  {
      return "Authenticated Username: " + ServiceSecurityContext.Current.PrimaryIdentity.Name;
  }
  </code></pre>
  
  <p>This problem appears when Client App uses WCF Service hosted in IIS as Service Reference.<br>
  When I use simple WCF Service from project all works great. </p>
  
  <p>Does anybody know why?</p>