>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.
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison