I created a windows service which checks the status of the another service which is in the remote machine.
When I run the service in my machine it is working fine and I can get the status of another service which is in remote machine.
But when I install the serice in another machine, It says that
"Cannot open Service Control Manager in this Computer This operation requires other privileges"
Hers is my code.
services = ServiceController.GetServices(machinename);
for(int i = 0;i< services.Length;i++)
if (services[i].ServiceName == servicename)
ServiceController sc = new ServiceController(services[i].ServiceName,remotemachinename); if(sc.Status == ServiceControllerStatus.Stopped)
Looking for the response.
What could be the problem