WatiN“无法强制转换COM对象”;例外

本文关键字:对象 COM 例外 转换 WatiN | 更新日期: 2023-09-27 17:50:23

有时,我的监控应用程序会莫名其妙地死机。它看起来像"mshtml"。HTMLDocument"资源不可用。有人有过类似的经历吗?提前谢谢。

错误信息:

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)).

错误堆栈跟踪:

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() ...

WatiN“无法强制转换COM对象”;例外

感谢您的报道。我已经在石膏周围重新打了一次针。此异常可能是由计时引起的。希望重新尝试可以修复它。将成为下一个版本的一部分,或者从SourceForge获取最新的代码。