WCF System.ServiceModel.Security.SecurityNegotiationException

问题描述 投票:1回答:1

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

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网站,我确实启用了“启用匿名访问”。

我错过了什么?

wcf-security
1个回答
0
投票

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

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

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

© www.soinside.com 2019 - 2024. All rights reserved.