S
Strider
Hello.
I have created a Windows Service and now I'm trying to
develop a controller application for my service.
So, I created a Windows.Forms project, I added a
System.ServiceProcess.ServiceController component on my
form and I hooked it up to my service.
The start and stop commands work just fine, but when I
try to invoke a custom command on my service using the
ServiceController.ExecuteCommand method, I get the
following exception:
"System.InvalidOperationException: Cannot control
MyService service on computer '.'. --->
System.ComponentModel.Win32Exception: Access is denied\r\n
I guess it has something to do with the services security
settings or my code's access permissions.
Any clues?
Thanks in advance.
I have created a Windows Service and now I'm trying to
develop a controller application for my service.
So, I created a Windows.Forms project, I added a
System.ServiceProcess.ServiceController component on my
form and I hooked it up to my service.
The start and stop commands work just fine, but when I
try to invoke a custom command on my service using the
ServiceController.ExecuteCommand method, I get the
following exception:
"System.InvalidOperationException: Cannot control
MyService service on computer '.'. --->
System.ComponentModel.Win32Exception: Access is denied\r\n
I guess it has something to do with the services security
settings or my code's access permissions.
Any clues?
Thanks in advance.