微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

c# – WatiN“无法转换COM对象”异常

@H_502_2@
我的监控应用程序不时会因为没有明显的原因而死亡.似乎“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() ...
@H_502_2@

解决方法

谢谢你的报道.我已经对演员进行了重新尝试.此异常可能是由计时引起的.希望重试能解决它.将成为下一个版本的一部分或从SourceForge获取最新代码. @H_502_2@ @H_502_2@
@H_502_2@
@H_502_2@

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐