サーバーPCのWCFでWebサービスを構築しました。httpsエンドポイントを作成し、いくつかのローカル証明書を構成しました。ネットワーク上で、サービスをテストするためのC#コンソールクライアントを作成しようとしています。しかし、私はこのエラーを受け取ります:未処理の例外:System.ServiceModel.Security.SecurityNegotiationException:呼び出し元はサービスによって認証されていません。---> System.ServiceModel.FaultE xception:認証に失敗したため、セキュリティトークンの要求を満たすことができませんでした(およびそれ以上)。
ここに私が接続したいエンドポイントのコードがあります:
そして、これが私のクライアントになります。
<bindings>
<wsHttpBinding>
<binding name="WebDataServiceHttpBinding" 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">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="TransportWithMessageCredential">
<transport clientCredentialType="None" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="https://anlocalip:9651/WebDataService" binding="wsHttpBinding"
bindingConfiguration="WebDataServiceHttpBinding" contract="wcf1.IWebDataService"
name="WebDataServiceHttpBinding">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
私はこのエラーから抜け出すことができません、誰かが私を助けることができますか?