c# - 无法转换 COM 对象

标签 c# .net

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/

相关文章:

c# - 如何将我自己的主题应用到我的 Windows 窗体应用程序中?

c# - 将 HQL 与标准混合

c# - 如何在我的应用程序中找到 StackOverflowException 的来源

c# - 是否有任何有值(value)的 CSLA 替代品可用?

c# - 从 Windows Phone 应用程序中的图像创建 GIF

c# - 使用 LINQ 选择 n 个最大的

c# - 透明后的橙色圆点

c# - 在 C# 中连接到 tableau postgresql

c# - 在 Xamarin.form 上访问 SQLite 数据库的最简单方法是什么?

c# - 是否有用于获取原始 Properties.Settings 的 API?