A
archimago
I have an administrative program (installed by click-once) that starts/stops
a service running on the same machine.
The ServiceController class can check the status of the service, but as soon
as it attempts to start/stop the service on Vista which has UAC enabled (it
runs fine on XP and when UAC is disabled), I get this message:
Cannot open <servicename> service on computer <computername>. Access is denied
Presumably it's all about permissions. The application was installed as a
fully trusted click-once program, and is running under a user that has
administrative rights; the service is running under the LocalSystem account.
This is a very common scenario. Can someone point me towards a solution?
a service running on the same machine.
The ServiceController class can check the status of the service, but as soon
as it attempts to start/stop the service on Vista which has UAC enabled (it
runs fine on XP and when UAC is disabled), I get this message:
Cannot open <servicename> service on computer <computername>. Access is denied
Presumably it's all about permissions. The application was installed as a
fully trusted click-once program, and is running under a user that has
administrative rights; the service is running under the LocalSystem account.
This is a very common scenario. Can someone point me towards a solution?