【问题标题】:WCF The HTTP request is unauthorized with client authentication scheme 'Negotiate'WCF HTTP 请求未经授权,客户端身份验证方案“协商”
【发布时间】:2014-09-12 03:45:52
【问题描述】:

我在带有 Windows Aut 的 IIS 上托管了 WCF 服务,我能够从本地计算机上的客户端应用程序 (WPF) 连接到该服务,但是当我尝试从其他计算机访问该服务时,我得到了跟随错误

HTTP 请求未通过客户端身份验证方案“协商”进行授权。从服务器收到的身份验证标头是“协商,NTLM”。 ---> System.Net.WebException: 远程服务器返回错误: (401) Unauthorized.

我检查了我的 IIS 中的提供程序,其中“协商”是第一个,然后是“NTLM”。我也尝试删除“NTLM”,但这也没有帮助。

我的 App.config 中有以下配置

 <bindings>
 <basicHttpBinding>
        <binding name="BasicHttpBinding" maxReceivedMessageSize="2147483647"
          receiveTimeout="00:30:00" sendTimeout="00:30:00"
          openTimeout="00:10:00" closeTimeout="00:10:00">
          <readerQuotas maxStringContentLength="2147483647" maxArrayLength="20971520" />
            <security mode="TransportCredentialOnly">
              <transport clientCredentialType="Windows" />
            </security>
        </binding>
  </basicHttpBinding>    

【问题讨论】:

    标签: wcf authentication iis ntlm http-negotiate


    【解决方案1】:

    您可能需要在 IIS 中启用匿名访问。

    【讨论】:

      猜你喜欢
      • 2012-04-10
      • 2011-01-16
      • 2018-11-07
      • 1970-01-01
      • 1970-01-01
      • 2019-09-13
      • 2011-06-22
      • 1970-01-01
      相关资源
      最近更新 更多