WCF System.ServiceModel.Security.SecurityNegotiationException

时间:2009-02-09 15:06:46

标签: wcf-security

尝试从其他服务器调用我的服务时收到以下错误消息。

Service cannot be started.
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.
当我尝试将客户端连接到服务器时,在我的事件查看器中

我在服务器中启用了跟踪,它看起来像

System.IdentityModel.Tokens.SecurityTokenValidationException被抛出。消息显示“该服务不允许您匿名登录。”

我查了一下IIS - > WCF网站和我确实启用了“启用匿名访问”。

我错过了什么?

1 个答案:

答案 0 :(得分:0)

除匿名之外是否启用了另一个安全设置?

如果您选择了匿名和另一个,并选择了基本或其他类型,则会遇到此问题。使用WCF,在IIS中托管时,您对于单一安全身份验证模型非常有限。

如果你能详细说明一下,我可以提供更好的答案。 :)