Re: Runtime-error 70 Permission Denied with DCOM


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Re: Runtime-error 70 Permission Denied with DCOM

  1. #1
    Tom Shreve Guest

    Re: Runtime-error 70 Permission Denied with DCOM


    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.
    >
    >


    Share on Google+

  2. #2
    NL Guest

    Re: Runtime-error 70 Permission Denied with DCOM


    I encounter the same problem as Eddie's but my component/object does not created
    "WithEvents". The only difference is I am running under windows 98 login
    to Novell Server and NT server using Novell Client 32. No MTS error was log
    down in NT event viewer when running the VB exe from this PC during the "permission
    denied" error.

    So I setup another windows 95 PC and only log on to NT server using the Client
    for Mircrsoft Network, this time I have no problem to access it but it return
    me an error " Run Time Error -2147023149(800706d3) Automation Error, The
    Authentication service is unkwon". When I checked the NT event viewer, I
    noticed following errors were log down :-

    1st Error :-
    An error occurred in your Microsoft Transaction Server component. Application
    Error:CONTEXT_E_NOSECURITY (Package: TEST) (Microsoft Transaction Server
    Internals Information: File: i:\viper\src\runtime\context\cobjctx.cpp, Line:
    575)

    2nd Error:-
    An error occurred in your Microsoft Transaction Server component. Application
    Error:8004E00D (Microsoft Transaction Server Internals Information:
    File: d:\viper\src\runtime\mtxas\viperasobj.cpp, Line: 944)

    What are these errors about ?
    When later I re-test again, the above errors does not happened again.

    Nevertheless, the 'Permission Denied " error still happened in the PC which
    with loging into Novell Server and NT server using Novell Client 32. We had
    also perform the same testing on a NT workstation which login to Novell Server
    and NT server ( but this error was loged down in NT event viewer ). It also
    facing the same "Permission Denied" problem. I had checked many many times
    on the user account that I created in NT server and in the MTS component
    and objects and it was all okay.

    What other possibilities that I overlook to filter this problem ? Fyi, I
    have no problem to run it using IIS/ASP.

    Please help.


    "Tom Shreve" <nospam_tms@msn.com> wrote:
    >
    >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.
    >>
    >>

    >


    Share on Google+

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center