Last post Feb 16, 2012 02:22 AM by Dino He - MSFT
Feb 14, 2012 02:16 PM|shiyaspk|LINK
I have a windows Service Program. I could able run the program in Service window of Administrative Tools. But at the end of the execution of this program i am getting the following error;
Error 1053: The service did not respond to the start or control request in a timely fashion.
The program is doing all its required actions, but even at the end of the execution i am getting this error.
Note:- I am not using any Threading.Timer in my 'OnStart' Function. Is the error is coming because of that?
Feb 16, 2012 02:22 AM|Dino He - MSFT|LINK
First you can read the KB for this error:
The ServiceBase class calls the OnStop method directly from the
Service command handler that is defined in the ScDispatcherLoop of the Advapi32.dll file. After 30 seconds, if the ScDispatcherLoop thread is not ready to receive a new service command from the service control manager, Windows Service Controller marks the
service as "time out." Therefore, you receive this error message.
And if you never using any thing like Timer, your service will time out after 30 seconds...