我正在开发一个 Internet Explorer 命令按钮,单击后将打开一个特定的网页。这是一段代码(IEApp
是对 的实例的引用IE.WebBrowser
):
IEApp.Navigate(sURL, ref one, ref two, ref three, ref four);
上面的行抛出以下 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
这在 IE6 或 IE7 上不是问题。关于出了什么问题的任何想法?我正在使用 AddInExpress 创建命令按钮。
干杯! 基督教