开发者

Web service gives 401 error on https

开发者 https://www.devze.com 2022-12-29 21:10 出处:网络
开发者_开发知识库I am using a web service with jQuery. My web service works fine on http:// but it gives me a 401 (unauthorized) error when running on https://.

开发者_开发知识库I am using a web service with jQuery. My web service works fine on http:// but it gives me a 401 (unauthorized) error when running on https://.

Please advise me on what I need to do.


Do you have any bindings for HTTPS? Do you have a sever certificate installed?


Not sure if this is your issue but I had a similiar problem and because the IIS web server was set up to not use anonymous authentication, I had to add the following line to my web service call

myProxy.Credentials= System.Net.CredentialCache.DefaultCredentials;
0

精彩评论

暂无评论...
验证码 换一张
取 消