This project has moved and is read-only. For the latest updates, please go here.

{"Error HRESULT E_FAIL has been returned from a call to a COM component."}

Jan 31, 2011 at 10:53 PM

I have the following code

 

        private void CodeForExceptionReportEvent(object Sender, ExceptionEventArgs myArgs)
        {
            if (this.InvokeRequired)
            {
                ExceptionReportCallbackDelegate cb = new ExceptionReportCallbackDelegate(CodeForExceptionReportEvent);
                this.Invoke(cb, new object[] { Sender, myArgs });
            }
            else
            {
                myArgs.ExceptionReporter.Show(myArgs.CustomMessage, myArgs.Exception);
            }

On the highlighted line, I 'sometimes get this error'.

System.Runtime.InteropServices.COMException crossed a native/managed boundary  Message=Error HRESULT E_FAIL has been returned from a call to a COM component.  Source=System.Windows.Forms  ErrorCode=-2147467259  StackTrace:       at System.Windows.Forms.UnsafeNativeMethods.IWebBrowser2.Refresh()       at System.Windows.Forms.WebBrowser.Refresh()  InnerException: 

 

Any thoughts?

 

 

 

May 4, 2011 at 7:54 PM

I am seeing the same issue with IE9 installed on Windows 7 SP1 x64.

Was there every any resolution to this?

May 4, 2011 at 9:38 PM
I wish I could help you. I ended up doing some redesign and the problem went away. Couldn't tell you for sure what fixed it.