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!!

Re: Please Help - Windows Service - CustomCommand by James

James
Wed Feb 15 14:52:01 CST 2006

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