CoInitializeSecurity & RPC_C_AUTHN_LEVEL_NONE does not work with XP SP2?

S

Sergey V

Hi Everyone,

I'm receiving DCOM access permissions problem AFTER reinstalling the Windows
XP system (application running under IIS invokes DCOM server on the same
computer).
Following is from system event log

----------------------------------
Event Type: Error
Event Source: DCOM
Event Category: None
Event ID: 10016
.....

The machine-default permission settings do not grant Local Activation
permission for the COM Server application with CLSID
{A2A1FD95-FE67-4A0B-90F5-35E4F769F073}
to the user HOST\IWAM_HOST SID
(S-1-5-21-117609710-436374069-1343024091-1007). This security permission can
be modified using the Component Services administrative tool.
-----------------------------------


I do not care about security for my DCOM server and have disabled security
in the code of the DCOM server using

hr = CoInitializeSecurity(NULL, -1, 0, 0,
RPC_C_AUTHN_LEVEL_NONE, RPC_C_IMP_LEVEL_IDENTIFY, 0,
EOAC_NONE, 0);

but this does not help now. Do I really need to explicitly configure access
permissions using dcomcnfg? or is there way to enable access to everyone
automatically?

Thanks, Sergey.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top