【问题标题】:WatiN "Unable to cast COM object" exceptionWatiN“无法转换 COM 对象”异常
【发布时间】:2011-04-14 14:36:56
【问题描述】:

有时,我的监控应用程序会莫名其妙地死掉。似乎“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() ...

【问题讨论】:

    标签: c# browser object com watin


    【解决方案1】:

    感谢您的报告。我重试了演员阵容。这个异常很可能是时间问题造成的。希望重试能解决。将成为下一个版本的一部分或从 SourceForge 获取最新代码。

    【讨论】:

    • 如果它有助于检测问题,我在带有 ie7 的 xp 机器上发布时遇到了这个问题。
    • 修复链接会很有帮助!
    猜你喜欢
    • 2010-11-17
    • 2011-08-17
    • 2018-11-16
    • 1970-01-01
    • 2011-10-29
    • 2017-11-10
    • 1970-01-01
    • 1970-01-01
    • 2011-06-07
    相关资源
    最近更新 更多