Ошибка WCF: wshttpbinding. Вызывающий не был аутентифицирован службой.

Я создал службу с отслеживанием состояния WCF и использую ее в своем оконном приложении. Я столкнулся с проблемой «Вызывающий абонент не был аутентифицирован службой» при запуске приложения.

Файл Web.Config:

<bindings>

      <wsHttpBinding>
        <binding name="wsHttpBinding1" messageEncoding="Text" textEncoding="utf-8">
          <!--<security mode="None">-->
          <security mode="Message">
            <!--<transport clientCredentialType="None"/>-->
            <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
            <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" />
          </security>
        </binding>
      </wsHttpBinding>
</bindings>

<services>

<service name="REST.IPBX" behaviorConfiguration="ServiceBehavior">
        <endpoint address="" binding="wsHttpBinding" contract="WCF_IPBX.IIPBX">
          <identity>
            <dns value="http://xyz.xxx.w.y/"/>
          </identity>
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
      </service>
</services>

<serviceBehaviors>

<behavior name="ServiceBehavior">
          <serviceMetadata httpGetEnabled="true"/>
          <serviceDebug includeExceptionDetailInFaults="false"/>
        </behavior>
</serviceBehaviors>

person Vengat    schedule 11.01.2018    source источник
comment
См. Этот вопрос, он может вам помочь: stackoverflow.com/questions/284538/   -  person Voice Of The Rain    schedule 11.01.2018
comment
Я пробовал это, но снова потерпел неудачу при использовании basicHttpBinding ..   -  person Vengat    schedule 11.01.2018