ServiceController and "Access Denied" errors

Discussion in 'ASP .Net' started by Ron, Nov 6, 2003.

  1. Ron

    Ron Guest

    I have a asp.net application that uses the above class to
    open, get status and start/stop a service. I can get the
    Status of my Service, but can't start/stop it. I keep
    getting Access Denied errors.

    System.ComponentModel.Win32Exception: Access is denied

    I see ServiceControllerPermission class - but not sure how
    to use it.

    Any help is much appreciated.
    Thanks,
    Ron
     
    Ron, Nov 6, 2003
    #1
    1. Advertising

  2. Ron

    Ian Guest

    Hi Ron,

    I have the same problem, did you find a solution as yet?

    Ian

    "Ron" <> wrote in message news:<071001c3a484$6986dbf0$>...
    > I have a asp.net application that uses the above class to
    > open, get status and start/stop a service. I can get the
    > Status of my Service, but can't start/stop it. I keep
    > getting Access Denied errors.
    >
    > System.ComponentModel.Win32Exception: Access is denied
    >
    > I see ServiceControllerPermission class - but not sure how
    > to use it.
    >
    > Any help is much appreciated.
    > Thanks,
    > Ron
     
    Ian, Nov 18, 2003
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Goldin

    Errors, errors, errors

    Mark Goldin, Jan 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    965
    Mark Goldin
    Jan 17, 2004
  2. Tony Tortora

    serviceController running on IIS.

    Tony Tortora, Feb 2, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    195
    Tony Tortora
    Feb 2, 2004
  3. Amil

    How to use ServiceController

    Amil, Feb 3, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    137
  4. Tony201
    Replies:
    0
    Views:
    809
    Tony201
    Jun 8, 2009
  5. Tony201
    Replies:
    0
    Views:
    1,102
    Tony201
    Jun 8, 2009
Loading...

Share This Page