Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Basic DCOM Question.

Posted on 1999-07-26
Medium Priority
Last Modified: 2010-04-16
I"m starting to work with dcom so i took from the msdn "com sample
tutorial" for the distant server.

I"ve made sure that on both computer the two RPC services runs.
i"ve given myself (the launching user) every available permission on the
i"ve set the authentication level to none for the server application.

when i call CoGetClassObject i get an error which translates to "The RPC
server is unavailable"

what am i missing ?

Question by:hed
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 86

Expert Comment

ID: 1201093
There can be lots of reason for this error message (lots of them unrelated to the RPCSS itself). Are you able to sart the object 'locally' on the remote machine?

Expert Comment

ID: 1201094
Are you logged in on both machines ? Do you all DLLs that your server requires either in the same directory as the executable, or on the PATH ? Have you registered the server properly ?

Expert Comment

ID: 1201095
Did you Register the Proxy/Stub DLL on the client machine ?

Author Comment

ID: 1201096
My user is logged in on both the machines.
i can start the server if i do it locally on both the server and the client machines.
my server does not require any dll's. ( it's a sample i"m trying to run )
still i get the "RPC Server is unavailable"

Accepted Solution

arikka earned 200 total points
ID: 1201097
1. I suppouse your DCOM server is out of proc server or
   in-proc, which is running under MTS or DllSurrogate

2. If so, your problem is in server registration:
(client machine)
     {CLSID}       -------------- AppID  

     AppID = {CLSID}

Use dcomcnfg.exe utility !

(server machine)
 in case of EXE: register server in regular way - run it
                 with registration command line  
 in case of DLL: register it with regsvr32
                 add to registry :

        DllSurogate = "DllHost"


Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question