Share via


HRESULT: 0x80010108 (RPC_E_DISCONNECTED)

Question

Friday, February 3, 2012 12:53 PM

Hi ,

I am invoking a WMI method(served by WMI provider)  from managed C++ code .Sometimes I am getting Exception :

System.Runtime.InteropServices.COMException was unhandled by user code

  Message="The object invoked has disconnected from its clients. (Exception from HRESULT: 0x80010108 (RPC_E_DISCONNECTED))"

  Source="mscorlib"

I browsed this on google without any luck.

I found the article http://support.microsoft.com/kb/319832 , but its for Window 2000 OS.

I am using window server 2008 R2.

 

Please help.

 

-Gyanendar

 

All replies (2)

Friday, February 3, 2012 4:41 PM ✅Answered

RPC_E_DISCONNECTED is commonly caused by a reference count problem, that is a mismatch between the AddRef's and the Release's.

Can't really say much more without seeing code.


Tuesday, June 5, 2012 4:19 PM ✅Answered

This problem was happening because of un-usual termination of WMI process making object stale and resulting this exception.