我正在开发一个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来创建命令按钮.
干杯! 基督教