WebBrowser.Navigate (…) löst COMException aus
Ich entwickle eine Internet Explorer-Befehlsschaltfläche, mit der beim Klicken eine bestimmte Webseite geöffnet wird. Hier ist ein Codeausschnitt (IEApp
ist ein Verweis auf eine Instanz vonIE.WebBrowser
):
IEApp.Navigate(sURL, ref one, ref two, ref three, ref four);
Die obige Zeile löst die folgende COMException aus:
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
Dies war in IE6 oder IE7 kein Problem. Irgendwelche Ideen, was los ist? Ich verwende AddInExpress zum Erstellen der Befehlsschaltfläche.
Prost! Christian