Wednesday, August 18, 2010

You receive an "Error 1053: The service did not respond

Symptoms : When you stop or pause a managed Microsoft Windows service, and the process of stopping or pausing the service takes more time than the default configured time, you receive the following error message:
Could not stop the Windows service name service on Local Computer.
Error 1053: The service did not respond to the start or control request in a timely fashion.

Note
Windows service name is a placeholder for the name of the Windows service that you have created.

CAUSE :
he 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.

Resolution :

To resolve this problem, obtain the latest service pack for the Microsoft .NET Framework 1.1. For additional information, click the following article number to view the article in the Microsoft Knowledge Base:
885055 (http://support.microsoft.com/kb/885055/ ) How to obtain Microsoft .NET Framework 1.1 Service Pack 1