DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 11 of 11

Thread: out of process EXE server error 70 permission denied w/ service

  1. #1
    Matthew Cromer Guest

    out of process EXE server error 70 permission denied w/ service


    I'm getting an error 70 permission denied error on a create object call.
    Basically, this is what happens:

    1. An NT service written in VB using the VB Service control from MS boots
    up with the box.

    2. This VB NT service is set to use an account BDMS with administrator priviliges.
    I've gone through with user manager and set every additional permission
    to administrator because of this problem but no fix.

    3. The service attempts to create an out of process COM object. I've tried
    both createobject against a latebound (type Object) variable and an early
    bound "new" create call. Both fail.

    4. The EXE server is running. Side effects of the COM EXE server work normally,
    the application runs fine. The only problem is that the NT service never
    got the object from the EXE server. Also, the EXE server just stays up,
    it doesn't quit (unless I kill it).

    5. The whole thing "just works" correctly (no error 70 permission denied)
    if I set the service up to run as System Account. However, if I do this
    the EXE server creates child processes that I cannot terminate with task
    manager. The whole purpose of the EXE server is to keep other applications
    running and from time to time I need to kill those applications manually
    using task manager.

    Any ideas how I can get this to work using the BDMS account (which I think
    I have given every possible permission) or else how I can use task manager
    to kill the spawned processes created by a service running as the System
    account?

    TIA,

    Matthew Cromer

  2. #2
    Matthew Cromer Guest

    Re: out of process EXE server error 70 permission denied w/ service


    I've found my "answer" from Microsoft.

    Get a load of this:

    http://support.microsoft.com/support.../Q175/9/48.ASP

    Pay particular attention to where MS tells you NOT TO WRITE NT Services in
    VB. Vomit.

    Matthew Cromer

  3. #3
    Matthew Cromer Guest

    Re: out of process EXE server error 70 permission denied w/ service


    I've found my "answer" from Microsoft.

    Get a load of this:

    http://support.microsoft.com/support.../Q175/9/48.ASP

    Pay particular attention to where MS tells you NOT TO WRITE NT Services in
    VB. Vomit.

    Matthew Cromer

  4. #4
    Jason Bock Guest

    Re: out of process EXE server error 70 permission denied w/ service

    "Matthew Cromer" <matthew@sdaconsulting.com> wrote in message
    news:3abb5ac1$1@news.devx.com...
    >
    > I've found my "answer" from Microsoft.
    >
    > Get a load of this:
    >
    > http://support.microsoft.com/support.../Q175/9/48.ASP
    >
    > Pay particular attention to where MS tells you NOT TO WRITE NT Services in
    > VB. Vomit.


    Have you taken a look at Desaware's site? http://www.desaware.com. They
    have a NT Service toolkit that allows you to write NT services in VB. I've
    never used it but it's another possibility.

    Regards,

    Jason



  5. #5
    Jason Bock Guest

    Re: out of process EXE server error 70 permission denied w/ service

    "Matthew Cromer" <matthew@sdaconsulting.com> wrote in message
    news:3abb5ac1$1@news.devx.com...
    >
    > I've found my "answer" from Microsoft.
    >
    > Get a load of this:
    >
    > http://support.microsoft.com/support.../Q175/9/48.ASP
    >
    > Pay particular attention to where MS tells you NOT TO WRITE NT Services in
    > VB. Vomit.


    Have you taken a look at Desaware's site? http://www.desaware.com. They
    have a NT Service toolkit that allows you to write NT services in VB. I've
    never used it but it's another possibility.

    Regards,

    Jason



  6. #6
    Peter Young Guest

    Re: out of process EXE server error 70 permission denied w/ service

    > Have you taken a look at Desaware's site? http://www.desaware.com. They
    > have a NT Service toolkit that allows you to write NT services in VB. I've
    > never used it but it's another possibility.


    I've used it plenty, and it's worked flawlessly.

    The services framework in their SpyWorks package also works very well.

    -Pete Young



  7. #7
    Peter Young Guest

    Re: out of process EXE server error 70 permission denied w/ service

    > Have you taken a look at Desaware's site? http://www.desaware.com. They
    > have a NT Service toolkit that allows you to write NT services in VB. I've
    > never used it but it's another possibility.


    I've used it plenty, and it's worked flawlessly.

    The services framework in their SpyWorks package also works very well.

    -Pete Young



  8. #8
    Klaus H. Probst Guest

    Re: out of process EXE server error 70 permission denied w/ service

    Hi Matthew,

    "Matthew Cromer" <matthew@sdaconsulting.com> wrote in message
    news:3abb5ac1$1@news.devx.com...
    >
    > I've found my "answer" from Microsoft.
    >
    > Get a load of this:
    >
    > http://support.microsoft.com/support.../Q175/9/48.ASP
    >
    > Pay particular attention to where MS tells you NOT TO WRITE NT Services in
    > VB. Vomit.


    I thought you'd gone over to the dark side by now...? Still doing VB?
    You should know better than to try something like that in VB. It's so
    complicated and error-prone you're better off doing it in C++. We've said
    that time and again in the newsgroups.

    ____________
    Klaus





  9. #9
    Klaus H. Probst Guest

    Re: out of process EXE server error 70 permission denied w/ service

    Hi Matthew,

    "Matthew Cromer" <matthew@sdaconsulting.com> wrote in message
    news:3abb5ac1$1@news.devx.com...
    >
    > I've found my "answer" from Microsoft.
    >
    > Get a load of this:
    >
    > http://support.microsoft.com/support.../Q175/9/48.ASP
    >
    > Pay particular attention to where MS tells you NOT TO WRITE NT Services in
    > VB. Vomit.


    I thought you'd gone over to the dark side by now...? Still doing VB?
    You should know better than to try something like that in VB. It's so
    complicated and error-prone you're better off doing it in C++. We've said
    that time and again in the newsgroups.

    ____________
    Klaus





  10. #10
    Michael Shutt Guest

    Re: out of process EXE server error 70 permission denied w/ service

    You may have stopped watching this thread, but just in case you haven't....

    I think your problem is easy to solve (now that I have been thru it once).
    I had the same thing going on with a service written in C++ trying to
    instantiate a object from a VB out-of-process server. I spent almost a
    month tearing my hair out and then realized it was a simple configuration
    problem. To fix it, to this:

    1.) run dcomcnfg
    2.) check the permissions on the class that is being instantiated ->
    I'll bet that BDMS has launch permissions but not access permissions,
    but that SYSTEM has both
    3.) give BDMS access permissions

    problem solved, hopefully.

    Incidentally, I have a setup just like you described, service written in VB
    using the NTSRVC.ocx, instanting objects from another VB out-of-process
    server. Works without issue.

    MJS


    "Matthew Cromer" <matthew@sdaconsulting.com> wrote in message
    news:3abb5ac1$1@news.devx.com...
    >
    > I've found my "answer" from Microsoft.
    >
    > Get a load of this:
    >
    > http://support.microsoft.com/support.../Q175/9/48.ASP
    >
    > Pay particular attention to where MS tells you NOT TO WRITE NT Services in
    > VB. Vomit.
    >
    > Matthew Cromer




  11. #11
    Michael Shutt Guest

    Re: out of process EXE server error 70 permission denied w/ service

    You may have stopped watching this thread, but just in case you haven't....

    I think your problem is easy to solve (now that I have been thru it once).
    I had the same thing going on with a service written in C++ trying to
    instantiate a object from a VB out-of-process server. I spent almost a
    month tearing my hair out and then realized it was a simple configuration
    problem. To fix it, to this:

    1.) run dcomcnfg
    2.) check the permissions on the class that is being instantiated ->
    I'll bet that BDMS has launch permissions but not access permissions,
    but that SYSTEM has both
    3.) give BDMS access permissions

    problem solved, hopefully.

    Incidentally, I have a setup just like you described, service written in VB
    using the NTSRVC.ocx, instanting objects from another VB out-of-process
    server. Works without issue.

    MJS


    "Matthew Cromer" <matthew@sdaconsulting.com> wrote in message
    news:3abb5ac1$1@news.devx.com...
    >
    > I've found my "answer" from Microsoft.
    >
    > Get a load of this:
    >
    > http://support.microsoft.com/support.../Q175/9/48.ASP
    >
    > Pay particular attention to where MS tells you NOT TO WRITE NT Services in
    > VB. Vomit.
    >
    > Matthew Cromer




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