Chr*_*dDK 8 browser internet-explorer exception comexception
我正在开发一个Internet Explorer命令按钮,该按钮将在单击后打开特定的网页.这是一段代码(IEApp是对实例的引用IE.WebBrowser):
IEApp.Navigate(sURL, ref one, ref two, ref three, ref four);
Run Code Online (Sandbox Code Playgroud)
上面的行抛出以下COMException:
Exception Source: Interop.SHDocVw
Exception Type: System.Runtime.InteropServices.COMException
Exception Message: The requested resource is in use. (Exception from HRESULT: 0x800700AA)
Exception Target Site: Navigate
Run Code Online (Sandbox Code Playgroud)
这在IE6或IE7上不是问题.什么出问题的任何想法?我正在使用AddInExpress来创建命令按钮.
干杯! 基督教
当IE正在做其他事情时,通常会发生ERROR_BUSY,例如显示window.alert消息框.
尝试抑制脚本错误并实现IDocHostShowUI并返回S_OK而不阻止消息泵