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

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

    .NET IIS to IIS credentials problem...

    Grind Boy, Aug 13, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    2,655
    Grind Boy
    Aug 14, 2003
  2. Ron
    Replies:
    1
    Views:
    1,650
  3. Matthew Louden
    Replies:
    3
    Views:
    6,321
    Sherif ElMetainy
    Nov 7, 2003
  4. JMaelstrom

    IIS 6 vs IIS 5 ASP.NET Performance Issues

    JMaelstrom, Dec 9, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    4,889
    shan420
    Apr 30, 2010
  5. =?Utf-8?B?Ymc=?=
    Replies:
    0
    Views:
    448
    =?Utf-8?B?Ymc=?=
    Dec 30, 2004
  6. Amil

    How to use ServiceController

    Amil, Feb 3, 2004, in forum: ASP .Net Security
    Replies:
    0
    Views:
    240
  7. Tony201
    Replies:
    0
    Views:
    1,289
    Tony201
    Jun 8, 2009
  8. Tony201
    Replies:
    0
    Views:
    1,289
    Tony201
    Jun 8, 2009
Loading...