Just a possibility...

Error 70 Permission Denied as soon as you Dim the remote object is a symptom
of a DCOM object created "WithEvents".

DCOM doesn't support "WithEvents" unless the server has full access rights
to the client (usually not the case). This situation is called a "callback"
since the DCOM server has to callback to the client to notify it of an event.
In this circumstance, the error is due to the client denying permission to
the server, not the other way around!

You can get the same error after object creation if you try to pass a client
object reference as an argument to a method of a DCOM object.

Tom

"Eddie Coleman" <questioner@bigfoot.com> wrote:
>Hi,
>I'm trying to build a client/server application using DCOM.
>When i get to run my application on the client machine i get the error :
>"Run-time error '70' Permission Denied "
>
>Here's what i've done :
>
>On the Server Host :
> I created an ActiveX Dll as a server.
> I registered the component in MTS.
> I created a Standard EXE Client to use on a remote NT Machine.
> This client uses in its code an object of the DLL.
> I've created a setup program which installs the client EXE on a remote
>machine as well as references the servers .vbr file , using the
>Package&Deployment Wizard in VB Tools.
> I've used Dcomcnfg.exe and set the following :
> Enable Distributed COM on This Computer (Checked)
> Default Authentication Level : None
> Default Impersonation Level : Identify
> Then i located the ProgName of my server and set the authentication
>level to none.(I wonder why i found it in the list because it's
>a DLL and not an EXE)
> In the Location tab i've checked The "Run application on this
>computer"
> In the Security tab i granted access to everyone in the three
>sections.
> In the Identity tab i selected the interactive user.
>
>On the Client host :
> I've installed the client program using my setup package i created from
>VB.
> I've set the following using Dcomcnfg.exe :
> Enable Distributed COM on This Computer (Checked)
> Default Authentication Level : None
> Default Impersonation Level : Impersonate
> In the default security i granted access to everyone in the three
>sections.
>
>
>When i Launch the client application on the client host I see the Component
>Spinning in the MTS Explorer on the Server host , and then the error
>"Run-time error '70' Permission Denied " appears on the client.
>
>Should i change registry settings in the HKEY_CLASSES_ROOT\AppID\{Class-ID}
>? If so how do i set these changes ? all what i see is hexadecimal numbers!
>
>Could Somebody please help me solve this problem ?
>Thank You.
>Eddie.
>
>