1

What is the reason for the following exception ?

System.Runtime.InteropServices.COMException (0x800706BA): The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

It occurs when I make a COM call, trying to manipulate InternetExplorer in a Windows XP machine running c# code. It raises when I try to read a property like .IsBusy.

Exception message: Unable to cast COM object of type 'System.__ComObject' interface type 'SHDocVw.IWebBrowser2'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{-D30C1661 CDAF-11D0-8A3E-00C04FC9E26E}' failed due to following error: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA)

André Pontes
  • 447
  • 1
  • 4
  • 13
  • WebBrowser is only suitable as a in-process component. You'll have to obtain the out-of-process interface pointer with, say, ShellWindows. http://stackoverflow.com/questions/4173982/c-how-to-get-current-url-from-the-ie/4174056#4174056 – Hans Passant Sep 20 '11 at 17:32
  • that's correct! I'm using ShellWindows to grab an outside InternetExplorer and manipulate by comcalls. – André Pontes Sep 20 '11 at 18:21

0 Answers0