DCOM: CoCreateInstanceEx returns E_ACCESSDENIED

I am working on a DCOM application with a server and a client on two machines, both of which run WinXP with Service Pack 2. On both machines I registered with the same username and password.

When a client on one machine calls CoCreateInstanceEx, asking another machine to start the server application, it returns E_ACCESSDENIED.

I tried to enter the properties of the server application component in dcomcnfg and give full permission to everyone for everything, but this did not help.

What do I need to do to make this call a success?

Update: When the server application is running in a Windows 2000 window, I do not get this error; CoCreateInstanceEx returns S_OK.

+5
source share
5 answers

That's correct, therefore, if your authentication level is set to the default value. What is the authentication level set in the default settings? Just out of interest. (although the fact that it works with field 2000 probably makes it redundant)

EDIT:

Also: I seem to remember how much I rebooted when I was playing / working with DCOM, so maybe a quick reboot of both machines when you are happy with the dcomcnfg settings won't work either.

+2
source

If the PCs are not members of the same domain, you must also provide permission to run and access ANONYMOUS LOGON. All does not include this.

+2
source

:

1) dcomcnfg , , " " .

2) , , ""

3) , , , , .

EDIT:

: CoInitialiseSecurity()? !

EDIT2:

: XP , . , DCOM.

+1

Windows 2000, ? Professional, Server, Adv Server...

, ( , , ..??)

- DCOM - - ?

0

. XP SP2 + .

, :

  • , .

  • , , , , , ( - , Distributed COM.

  • MMC ( dcomcnfg).

  • " " - "" โ†’ " " , Impersenation ""

  • " COM", , " ", " " COM.

  • , 135 ...

, !

0

All Articles