Click here to Skip to main content
15,878,814 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
Olivier Levrey 3-May-11 8:20am    
If you could give some code or details about your COM object, maybe a few people would have ideas.

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!
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900