"Cannot control <service name> service on computer '.' " using ServiceController...

  • Thread starter Thread starter Maksim Chepel
  • Start date Start date
M

Maksim Chepel

I'm trying to use ExecuteCommand method of
System.ServiceProcess.ServiceController in my C# service controller app to
make a custom call to my service. I'm getting this exception and my service
never gets my custom message code? What's wrong?
Permissions?
Can ServiceControllerPermission help somehow? I'm lost a little. :(
Thanks a lot!
 
Found it! Custom code may only between 128 and 255 - :(



I'm trying to use ExecuteCommand method of
System.ServiceProcess.ServiceController in my C# service controller app to
make a custom call to my service. I'm getting this exception and my service
never gets my custom message code? What's wrong?
Permissions?
Can ServiceControllerPermission help somehow? I'm lost a little. :(
Thanks a lot!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top