I have develope a window service , To start and stop the service i am using folowing
code:-
public void StartService(string serviceName)
{
ServiceController service = new ServiceController(serviceName);
try
{
service.Stop();
Thread.Sleep(500);
service.Start();
Thread.Sleep(1500);
}
catch { }
}
When I use this code Running my visual studio as administrator it works fine .
but the code is not working on iis , Is there any way to open an iis application as administrator ,
For grammer Mistake Sorry.
Please Help, Thank you!
Rajkiran SwainPosted Dec 18, 2017, 2:43 AM
Mann MauryaPosted Dec 18, 2017, 2:25 AM
Mann MauryaPosted Dec 1, 2017, 12:18 AM
Rajkiran SwainPosted Nov 30, 2017, 8:08 AM