Home All Groups Group Topic Archive Search About

Please Help - Windows Service - CustomCommand

Author
3 Feb 2006 5:55 PM
Hanika
Hello,

I get the following error when I send a customCommand to a service from a
Windows form aplication when the service is stopped:

"Cannot Control (ServiceName) service on computer '.'"

I was under the understanding that the service can receive these commands
even if the service is stopped. 

Am I wrong? If I am not wrong, then what else could be causing this error?

Any help would be greatly appreciated!!

Author
15 Feb 2006 8:52 PM
James
Have you already recieved a reply. I am having a similar error. But it doesn't appear to be related to the state of the servie. It appears to be related to the value passes in. When I pass in greater than 255, I get this error. When I pass in less than this, I don't. So, it appears even though the parameter is declared as a 32 bit int, it is handle as an unsigned byte. Thanks MS!

Hope this helps you.


---
Posted via www.DotNetSlackers.com

AddThis Social Bookmark Button