System.Net.WebClient doesn't work with Windows Authentication

前端 未结 4 1885
广开言路
广开言路 2020-12-08 11:58

I am trying to use System.Net.WebClient in a WinForms application to upload a file to an IIS6 server which has Windows Authentication as it only \'Authentication\' method.

4条回答
  •  Happy的楠姐
    2020-12-08 12:28

    Try going into IE's options and explicitly add the site to the Intranet Zone. Then re-run the program. You should also not run the program from an administrator login. This may trigger the Enhanced Security Configuration for Internet Explorer.

    It could explain why you can hit the site with Firefox and Opera, but not with IE or WebClient.

提交回复
热议问题