WatiN exception "Unable to exclude COM object"

from time to time my monitoring application dies for no apparent reason. It seems that the resource "mshtml.HTMLDocument" is not available. Has anyone else experienced something similar? Thanks in advance.

Error message:

14.04.2011 18:26:37 -> Test 1.2 (Subscriber type requests), error: Unable to cast COM object of type 'System.__ComObject' to interface type 'mshtml.HTMLDocument'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3050F55F-98B5-11CF-BB82-00AA00BDCE0B}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). 

Error Stack Trace:

 14.04.2011 18:26:37 -> Test 1.2 (Subscriber type requests), trace: at WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitForFramesToComplete(IHTMLDocument2 maindocument) at WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitForFramesToComplete(IHTMLDocument2 maindocument) at WatiN.Core.Native.InternetExplorer.IEWaitForComplete.WaitForCompleteOrTimeout() at WatiN.Core.WaitForCompleteBase.DoWait() at WatiN.Core.IE.WaitForComplete(Int32 waitForCompleteTimeOut) at WatiN.Core.Browser.GoTo(Uri url) at WatiN.Core.Browser.GoTo(String url) at WebMonitor.Tests.Execute() ... 
+4
source share
1 answer

Thanks for reporting. I set a retry around the throw. This exception is probably due to timing. Hopefully retrying will fix this. Will be part of the next version or get the latest code from SourceForge.

+1
source

Source: https://habr.com/ru/post/1348114/


All Articles