serviceController running on IIS.

T

Tony Tortora

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,539
Members
45,024
Latest member
ARDU_PROgrammER

Latest Threads

Top