Link to home
Start Free TrialLog in
Avatar of hed
hed

asked on

CoCreateInstanceEx returns "Access is Denied"

I"ve installed Msdn basic example for DCOM, simple.
and tried to run it.
when the server was on the same machine there was no problem. but when the server was on a different machine i got an error code that meant ( through format message ) "Access is Denied".
this is the calling code
  hr = CoCreateInstanceEx(CLSID_SimpleObject, NULL, CLSCTX_SERVER, pcsi, 1, &mq);
psci contains only the server name and all the other entrances are Null.
i suspect it has to do something with the NT security configuration.
Avatar of hed
hed

ASKER

if i use
CoCreateInstance with CLSCTX_REMOTE_SERVER i get

A Remote Activation was necessary but was not allowed.
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial