Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Errocode 8007000e,80004005, and 800704a6

$
0
0

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

                   

Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>