serviceController running on IIS.

Discussion in 'ASP .Net Security' started by Tony Tortora, Feb 2, 2004.

  1. Tony Tortora

    Tony Tortora Guest

    Hello

    I am trying to access the Print Spooler service on a domain from an ASPX web
    page using C#. I have created a serviceController component on my form. I
    have also created a serviceControllerPermission component with unrestricted
    permission.....I know I am not doing this correct, because it's not working.

    MSCP = new ServiceControllerPermission(Permission.Unrestricted);
    serviceController1.MachineName = "MyComputerName"
    serviceController1.ServiceName = "Spooler";

    When I inspect the object, the flags stop and start are true, but the
    cancontrol flag is false.

    Thank you for your help.
     
    Tony Tortora, Feb 2, 2004
    #1
    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. Ron
    Replies:
    1
    Views:
    1,351
  2. =?Utf-8?B?Ymc=?=
    Replies:
    0
    Views:
    362
    =?Utf-8?B?Ymc=?=
    Dec 30, 2004
  3. Amil

    How to use ServiceController

    Amil, Feb 3, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    147
  4. Tony201
    Replies:
    0
    Views:
    874
    Tony201
    Jun 8, 2009
  5. Tony201
    Replies:
    0
    Views:
    1,157
    Tony201
    Jun 8, 2009
Loading...

Share This Page