当我在本地机器上运行 WCF 服务时,它工作正常。当我将相同的文件部署到我们的测试服务器时,当我的测试客户端尝试连接到 WCF 服务时出现此错误:
Security Support Provider Interface (SSPI) authentication failed. The server may not be running in an account with identity 'host/Server01'. If the server is running in a service account (Network Service for example), specify the account's ServicePrincipalName as the identity in the EndpointAddress for the server. If the server is running in a user account, specify the account's UserPrincipalName as the identity in the EndpointAddress for the server.
这是什么意思,我应该寻找修复哪些区域?我玩弄了 web.config 身份部分,但我仍然不确定需要什么。
最佳答案
我之前遇到过类似的错误,但消息有些不同
右键单击网站正在运行的应用程序池,单击属性,然后转到身份选项卡。尝试输入“host/Server01”身份,看看是否有帮助。
关于WCF 服务 - 身份验证/SSPI 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/972466/