首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >WatiN“无法转换COM对象”异常

WatiN“无法转换COM对象”异常
EN

Stack Overflow用户
提问于 2011-04-14 22:36:56
回答 1查看 1.6K关注 0票数 4

有时,我的监控应用程序会无缘无故地死掉。似乎"mshtml.HTMLDocument“资源不可用。其他人也有类似的经历吗?提前谢谢。

错误消息:

代码语言:javascript
运行
复制
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)).

错误堆栈跟踪:

代码语言:javascript
运行
复制
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() ...
EN

回答 1

Stack Overflow用户

发布于 2011-04-18 19:45:42

感谢您的报道。我已经对演员阵容进行了重试。此异常可能是由时间引起的。希望重试能解决这个问题。将成为下一版本的一部分,或者从SourceForge获取最新代码。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5664880

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档