开发者

Unable to cast COM object

开发者 https://www.devze.com 2023-03-02 03:25 出处:网络
Unable to cast COM object of type \'System.__ComObject\' to interface type \' \\a. \\a\'. This operation failed because t开发者_如何学Pythonhe QueryInterface call on the COM component for the > > in

Unable to cast COM object of type 'System.__ComObject' to interface type ' \a. \a'.

This operation failed because t开发者_如何学Pythonhe QueryInterface call on the COM component for the > > interface with IID '{39C13A4D-011E-11D0-9675-0020AFD8ADB3}' failed due to the following error:

The RPC server is unavailable. (Exception from HRESULT: 0x800706BA).

Anyone has idea about this exception?


The likely reason is the COM server was running in a separate process and crashed when the QueryInterface() call asked for an unsupported interface. If that's the case it should be addressed by the COM server supplier.


Looks like you got a COM Object from somewhere else and you are trying to do a QueryInterface on that COM Object for some interface. The COM Server to which this COM Object belongs cannot be instantiated due to one reason or another. An RPC Server failure can be caused due to several reasons.

One probable reason might be that DCOM Tunneling is not enabled for this COM Server. Link

However, you will have to show us your code if you want more help.


I face the same issue. Aamir's answer saved us. We found out our case is caused by the registry corruption. So we ask help from tech guy, and recovery the registry. Not sure, which registy is corrupted for your case, FYI, ours is DB connection string.

0

精彩评论

暂无评论...
验证码 换一张
取 消