Hi,
We are instantiating IE from our WPF Application
some users get the above error sometime,I could not reproduce it on my machine.
Is there any way to fix this issue?
Code snippet
Thread thread = new Thread(new ThreadStart(() =>
{
try
{
var ieType = Type.GetTypeFromProgID("InternetExplorer.Application");
var ie = (InternetExplorer)Activator.CreateInstance(ieType); // http://msdn.microsoft.com/en-us/library/aa752084(v=vs.85).aspx
ie.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(ie_DocumentComplete);
ie.Visible = true;
ie.Navigate(source);
}
catch (Exception e)
{
Messenger.ReportException(null, "Failed to open Internet Explorer", "Failed to Launch IE", e);
}
}));
thread.Name = "InternetExplorerHelper - Create Window from Horizon";
thread.SetApartmentState(ApartmentState.STA);
thread.Start();
Thanks