Fletchius
Fletchius

Reputation: 460

Windows Credentials dialog won't show when navigating using axWebBrowser

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: WebBrowser response

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?

Upvotes: 1

Views: 80

Answers (1)

Fletchius
Fletchius

Reputation: 460

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.

Upvotes: 0

Related Questions