Unable to cast COM object of type 'System.__ComObject' to interface type ' \a. \a'.
This operation failed because the 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).
有人知道这个异常(exception)吗?
最佳答案
可能的原因是 COM 服务器在单独的进程中运行,当 QueryInterface()
调用请求不支持的接口(interface)时崩溃。如果是这种情况,则应由 COM 服务器供应商解决。
关于c# - 无法转换 COM 对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5869324/