1

我有一个 WPF 客户端应用程序,它调用多个 ASMX Web 服务,我不断收到 401 身份验证错误。

有时无论出于何种原因,一个成功而另一个失败,但由于某种原因,一个工作然后另一个失败......不知道原因是什么。

其中一项服务需要进行双跳,它在白天早些时候工作,由于某种原因现在已经停止工作我不相信我改变了任何东西。

我关注 了http://social.technet.microsoft.com/Forums/windowsserver/en-US/c9239a89-fbee-4adc-b72f-7a6a9648331f/401-unauthorized-access-is-denie d-due-to-invalid-credentials ?forum=winserversecurity

按照建议

IIS 7 was difficult for figuring out why i was getting the 401 - Unauthorized: Access is denied due to invalid credentials... until i did this...

1.) Open iis and select the website that is causing the 401
2.) Open the "Authentication" property under the "IIS" header
3.) Click the "Windows Authentication" item and click "Providers"
4.) For me the issue was that Negotiate was above NTLM. I assume that there was some kind of handshake going on behind the scenes, but i was never really authenticated. I moved the NTLM to the top most spot, and BAM that fixed it.

它最初有效,但是一旦我关闭提琴手,问题又回来了

4

0 回答 0