Re: COCreateInstanceEx returnes RPC Server unavailable error in VC 7.0

Tech-Archive recommends: Fix windows errors by optimizing your registry



What makes you think you can't create a proxy/stub DLL in
VC7 and later? In fact it's even easier than in VC6 since the
ATL appwizard creates a project for that purpose so you
don't have to deal with nmake.

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

"Surjya" <surjyasahoo@xxxxxxxxx> wrote in message
news:1157553870.524632.287110@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi,

My problem is as follows:

I have created a DCOM Service using Visual Studio 2003.
I have hosted the same on a remote network machine; i would refer to
this remote machine as the server.
On the server i have registered the service exe with "<path> -service"
command and have started the service in the services.msc applet.
On the server i have added the service exe to the firewall's exception
applications' list.
In dcomcnfg, I have added my client machine to the "remote launch and
activation permission" and "remote access permission" list.

With all these in place, when i call CoCreateInstanceEx, i get
0x800706ba (RPC Server unavailable).

I have tried to find a solution for the error code in various groups,
but the discussions are around VC 6.0, where the ide creates a
proxy-stub dll, that has to be registered at both the server and the
client machines. As VC 7.0 does not create any proxy-stub as such, all
those discussions have not been helpful to solve my problem.

Any little help will be really appreciated.
Thanks in advance.

~Surjya.



.



Relevant Pages

  • Re: Stupid ATL COM Server question
    ... One way is to specify the remote server at ... registering your type library on the client machine will not ... you either have to register your ... This provides the alternate way of specifying a remote ...
    (microsoft.public.vc.atl)
  • Re: Connecting to Server via Terminal Services on PPC WM5.0
    ... connected to a client machine on the network with activeSync, ... connection. ... Remote Desktop, Server will anyway but a standard xp pc will need to have ...
    (microsoft.public.pocketpc.phone_edition)
  • RE: What to do if I cant use terminal server
    ... Remote Web Workplace is a place where you can create a Remote Desktop ... to a client machine (Must be running Windows XP) at work ... one option would be to install a 2nd server running TS in App ... client machine, then a TS server would be your best option. ...
    (microsoft.public.windows.server.sbs)
  • Re: Fingerprint Authentication
    ... But using it remote ... > is probably a no-go because verification of the fingerprint records are done by UPEKs driver at the hardware level. ... > and then capture a BioAPI record at the client machine and have the server verify it. ...
    (freebsd-hackers)
  • SecurityFocus Microsoft Newsletter #152
    ... MICROSOFT VULNERABILITY SUMMARY ... Real Networks Helix Universal Server Remote Buffer Overflow ... ... NEW PRODUCTS FOR MICROSOFT PLATFORMS ...
    (Focus-Microsoft)