I'm doing some maintenance work on a legacy app that is using AxSHDocVw.AxWebBrowser
to access in an intranet website. The web site required Windows Authentication. When I navigate to the page directly using IE I get a pop-up asking for Active Directory credentials, but when I try to WebBrowser.navigate()
to it I immediately get:
Refreshing the page using the provided link gives me an UNAUTHORIZED response.
Is there something I need to do when setting up the AxWebBrowser
control so that it properly displays the credential popup?
Okay, found the answer, and as usual it's a coding issue. The original author of this code set it so that no pop-ups could happen ( axwebbrowser.silent = true
). He did it to prevent Javascript errors popping up (as opposed to, you know, FIXING the javascript errors), but a side effect was that the dialog box for credential entry wouldn't show up. Removal of that line fixed the issue.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.