WCF 服务 - 身份验证/SSPI 错误

标签 wcf web-services

当我在本地机器上运行 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/

相关文章:

c# - WCF 数据服务 [WebGet] 日期时间参数

java - 跨Web方法+java的对象

java - Rest 中的 JSON 到 POJO 映射

java - 如何解析 txt Web 服务

wcf - 在以 ASP.NET 兼容模式运行的 WCF 服务中,HttpContext 为空

c# - WCF REST 服务客户端配置文件为空

.net - 当传递超过 50kb byte[] 时,WCF Web 服务操作会引发异常

ios - 在 OSX 中创建 RESTful Web 服务(java/python/?)以使用 swift 测试 ios 应用程序的简单方法

c# - 如何从 C# Web 服务以 JSON 形式返回数据表/数据集

c# - 当 MessageContract 位于我的 WCF 服务中时,为什么代理生成的代码会创建一个新类?