P
prowyh
Hi, all,
I am struggling with the problem controlling Windows Service through
Web Service, such as the following code snippet:
ServiceController sc = new ServiceController();
sc.ServiceName = "myService";
sc.Start();
sc.WaitForStatus(ServiceControllerStatus.Running);
This code snippet is wrapped in Web Service. But error! The compaint
is that can not open the service, refuse access.
Any idea? How to assign the access rights to this code snippet?
Thanks!
I am struggling with the problem controlling Windows Service through
Web Service, such as the following code snippet:
ServiceController sc = new ServiceController();
sc.ServiceName = "myService";
sc.Start();
sc.WaitForStatus(ServiceControllerStatus.Running);
This code snippet is wrapped in Web Service. But error! The compaint
is that can not open the service, refuse access.
Any idea? How to assign the access rights to this code snippet?
Thanks!