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

前端 未结 6 1617
孤街浪徒
孤街浪徒 2020-12-08 19:01

Few days ago I had quite a headache with authentication problems when using Windows authentication between client and wcf web service. The error I was getti

6条回答
  •  醉话见心
    2020-12-08 19:41

    Not this exact problem, but this is the top result when googling for almost the exact same error:

    If you see this problem calling a WCF Service hosted on the same machine, you may need to populate the BackConnectionHostNames registry key

    1. In regedit, locate and then click the following registry subkey: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0
    2. Right-click MSV1_0, point to New, and then click Multi-String Value.
    3. In the Name column, type BackConnectionHostNames, and then press ENTER.
    4. Right-click BackConnectionHostNames, and then click Modify. In the Value data box, type the CNAME or the DNS alias, that is used for the local shares on the computer, and then click OK.
      • Type each host name on a separate line.

    See Calling WCF service hosted in IIS on the same machine as client throws authentication error for details.

提交回复
热议问题