Service identity check failed | Custom binding security RRS feed

  • Question

  • Hi,

    I am trying to set up my environment up and running using custom binding security. Following is my client app.config:

      <endpoint name="" address="net.tcp://localhost:8000/ServiceModelSamples/Service" binding="customBinding" 
                bindingConfiguration="Binding1" contract="Microsoft.Samples.Security.ICalculatorDuplex" behaviorConfiguration="CalculatorClientBehavior">
          <userPrincipalName value = "MyDomain\\MyUser"/>
      <!-- configure a custom binding -->
        <binding name="Binding1">
          <security authenticationMode="SecureConversation" requireSecurityContextCancellation="true">
          <textMessageEncoding messageVersion="Soap12WSAddressing10" writeEncoding="utf-8"/>
          <sslStreamSecurity requireClientCertificate="false"/>

    I have verified the identity under which service is running by using WindowsIdentity.GetCurrent().Name which gives MyDomain\MyUser value.

    When I run this solution, I get this error:

    The identity check failed for the outgoing message. The expected identity is 'identity(' for the 'net.tcp://localhost:8000/ServiceModelSamples/Service' target endpoint.



    Friday, October 24, 2014 1:21 PM