WebBrowser Control Main Header

I have a WPF application that uses a WebBrowser to load a web page that authenticates using an auth base stream that displays as:

enter image description here

I want to change what appears as the header (BasicAuthName.exe) in the auth prompt, which appears to be based on the file name of the executable file that hosts the WebBrowser control.

How can this be set at runtime to display a more user-friendly header?

+5
source share
1 answer

You can not. The display name is managed by Windows Security to tell the user which application is requesting their credentials. The most you can do is change the name of the application itself. If you are using Visual Studio:

  • Open the project properties in Visual Studio (right-click on the project in the solution explorer and select "Properties" from the pop-up menu);
  • On the Application tab of the properties window, change the Assembly Name.
+1
source

All Articles