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_S impleObjec t, 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.
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_S
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
CoCreateInstance with CLSCTX_REMOTE_SERVER i get
A Remote Activation was necessary but was not allowed.