T-6ren">
gpt4 book ai didi

c# - 等待 "Unable to cast COM object"异常

转载 作者:行者123 更新时间:2023-11-30 12:51:56 25 4
gpt4 key购买 nike

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

最佳答案

感谢您的报告。我已经重新尝试了 Actor 阵容。这个异常很可能是时序引起的。希望重试能解决它。将成为下一个版本的一部分或从 SourceForge 获取最新代码。

关于c# - 等待 "Unable to cast COM object"异常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5664880/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com