Information générale
Catégorie:
COM/DCOM et OLE Automation
>>I'm trying to run a remote COM EXE using the CreateObjectEx command.
>>
>>Example: oSec = CreateObjectEx('comsec.comsec','\\SERVER2')
>>
>>When I execute the line above from the command line. I get the following error:
>>OLE error code 0x80070005: Access is denied.
>>
>>The COM server is on a NT 4.0 machine running Automation Manager and I'm running the line above from a Win95 machine.
>>
>>Any idea what I need to do to make that error message go away and return a reference to the object?
>
>Monte, you need to configure the "Default Security" in DCOMCNFG on your NT box to setup the Default Launch Permissions and Default Access Permissions to add the "Network" user. The custom permissions also may be configured individually for your COM EXE in its Properties/Security tab. Security configuration is up to you.
I was using Remote Automation on the Server Connection tab of the RACMGR32. Should I be using Distributed COM? I tried to select Distributed COM, however, ever time I select it then select Apply it reverts back to Remote Automation. Doesn't it have to be Distributed COM before I can use the DCOMCNFG?
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement