【发布时间】:2010-09-23 16:46:05
【问题描述】:
尝试连接到 WCF Web 服务时出现以下错误:
WCF web query ...
Unhandled Exception: System.ServiceModel.Security.SecurityNegotiationException:
The caller was not authenticated by the service. ---> System.ServiceModel.FaultException: The request for security token could not be satisfied because authentication failed.
at System.ServiceModel.Security.SecurityUtils.ThrowIfNegotiationFault(Message
message, EndpointAddress target)
at System.ServiceModel.Security.SspiNegotiationTokenProvider.GetNextOutgoingM
essageBody(Message incomingMessage, SspiNegotiationTokenProviderState sspiState)
我已经用 C# 编写了 WCF 客户端和服务器应用程序。客户端在本地运行时可以很好地与服务器通信,但是当我对复制到远程 Amazon EC2 云计算机的远程服务器进行相同的调用时出现证书请求错误。
如何在 WCF 中暂时关闭证书请求,以便查看一切是否正常?
【问题讨论】:
标签: wcf-security