无法转换COM对象 [英] Unable to cast COM object

查看:82
本文介绍了无法转换COM对象的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法将System .__ ComObject类型的COM对象强制转换为接口类型\ a。 \一个'。此操作失败,因为对于具有IID{39C13A4D-011E-11D0-9675-0020AFD8ADB3}的接口的COM组件的QueryInterface调用由于以下错误而失败:RPC服务器不可用。 (来自HRESULT的异常:0x800706BA)。

任何人都知道这个异常

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).
any one have idea about this exception

推荐答案

防火墙?代理?使用dcomcnfg.exe设置正确的配置?

查看此链接以获取更多信息:

http://ezinearticles.com/?How-to-Fix-The-RPC-Server-Is-Unavailable-Easily&id=5048827 [ ^ ]



祝你好运!
Firewall? Proxy? Set the correct configuration with dcomcnfg.exe?
Check out this link for more information:
http://ezinearticles.com/?How-to-Fix-The-RPC-Server-Is-Unavailable-Easily&id=5048827[^]

Good luck!


我的解决方案是改变解决方案平台到x86来自AnyCPU的关于项目和重建。



我的问题是由使用x86生成的项目和移植到x64架构造成的。

使用VisualStudio 2010.I已解决更改解决方案平台
来自AnyCPU的
到x86 on current配置在项目上运行

pratically:

解决方案资源管理器Click-R on Solution(面板顶部) - >配置管理器

在列平台列中的有问题项目行的网格中在您选择的Windows中选择"< New ...>"



平台:" x86"

复制设置:任何CPU

取消选择创建新解决方案如果需要

然后[关闭],[关闭]重建并运行...现在对我来说它正在工作

CiaoCiao
My solution was change Solution "Platform" to "x86" from "AnyCPU" on Project and rebuild.

My problem is caused using project born on x86 and ported on x64 architecture
with VisualStudio 2010.I was resolved changing Solution "Platform"
from "AnyCPU" to "x86" on Current "Configuration" on Project to run
pratically:
in Solution Explorer Click-R on Solution (top of panel) -> Configuration Manager
in the grid on row of problematic project in column "Platform" choice "<New...>"
in windows you choose:
Platform: "x86"
Copy setting from: "Any CPU"
deselect "Create new solution" if nedeed
then [Close], [Close] rebuild and Run... now for me it is working
CiaoCiao


这篇关于无法转换COM对象的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆