【问题标题】:The authentication header received from the server was 'NTLM,Negotiate'. in windows store apps从服务器收到的身份验证标头是“NTLM,Negotiate”。在 Windows 商店应用程序中
【发布时间】:2026-01-12 14:15:01
【问题描述】:

我开发了一个 Windows 应用商店应用程序使用部署在另一台服务器(不是我的)中的 WCF 服务,一切正常,直到我禁用匿名身份验证以关闭收到错误消息

"The HTTP request is unauthorized with client authentication scheme 'Anonymous'.
        The authentication header received from the server was 'NTLM,Negotiate'."

我已经用谷歌搜索并找到了一些解决方案,但没有一个解决方案对我有用。在另一个项目中访问相同的 WCF 服务它工作正常,没有抱怨,但是当我使用 Windows 8 商店应用程序时,我得到了上面的错误。

非常感谢任何解决方案或解释。

【问题讨论】:

    标签: windows-store-apps ntlm


    【解决方案1】:

    [嗨,Dinesh Haraveer,

    请尝试使用企业身份验证。

    Windows 域凭据使用户能够使用他们的凭据登录远程资源,就像用户提供了他们的用户名和密码一样。企业身份验证功能通常用于连接到企业内服务器的业务线应用程序。 对于 Internet 上的通用通信,您不需要此功能。

    请尝试查看http://msdn.microsoft.com/en-us/library/windows/apps/hh464936.aspx

    【讨论】:

      最近更新 更多