4
,我的監控應用程序因無明顯原因而死亡。它看起來像「mshtml.HTMLDocument」資源不可用。任何人都有類似的經歷嗎?提前致謝。WatiN不時拋出「無法投射COM對象」異常
錯誤消息:
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() ...
謝謝Jeroen,希望它有效。 – Bostjan 2011-04-18 13:52:54
這有沒有更新?我今天剛遇到這個。 – 2011-12-04 15:32:01
如果有助於檢測問題,我在使用ie7的xp機器上發佈時遇到此問題。 – FabianSilva 2012-02-09 14:51:14