WebBrowser is working on IISExpress from Visual Studio, but is not working on Windows ISS

1

The WebBrowser is working on IISExpress from Visual Studio, but it is not working on Windows ISS.

I run this code after creating the Thread SetApartmentState(ApartmentState.STA)

try
{
    //BrowserValidate.FixBrowserVersion();
    webBet = new WebBrowser();
    webBet.DocumentCompleted += webBet_DocumentCompleted;
    webBet.Navigate("https://www.site.com");

    Application.Run();
}
catch (Exception)
{
}
    
asked by anonymous 02.03.2018 / 20:54

0 answers