Webbrowser is running on Visual Studio’s Iisexpress, but not working on Windows ISS

Asked

Viewed 55 times

1

Webbrowser is running on Visual Studio’s Iisexpress, but 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)
{
}
  • And what is the error presented?

  • So @Leandroangelo he has no error, just does not perform anything after Application.Run(); in theory he should call my Documentcompleted method, not even fall into the method. thanks in advance for the help.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.