开发者

WebBrowser.Navigate - 401 Unauthorized - ASP.Net

开发者 https://www.devze.com 2023-03-10 21:49 出处:网络
I\'m using WebBrowser control in my asp.net application by creating a STA thread and using it in the thread. Everything was working fine till I changed my administrator account for my web application.

I'm using WebBrowser control in my asp.net application by creating a STA thread and using it in the thread. Everything was working fine till I changed my administrator account for my web application.

Since then I'm getting the error "Navigation is cancelled". So I extended the webbrowser control as specified in this MSDN article and I handled the NavigateError ev开发者_JAVA技巧ent. I'm getting the status code 401 which is unauthorized.

Also I tried passing the headers to the Navigate method as given here. But still no use.

Any ideas?

0

精彩评论

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