Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to create a service application with ATL in vs2010, I user vs2010's wizard to built a ATL Service application. compile was successful. but can not run, Service manager said the error number is 1053; I use vs2005 do it as vs2010 did, that OK.

Help, this problem tortured me couple weeks.
Posted
Comments
Sergey Alexandrovich Kryukov 24-Mar-12 18:51pm    
Not enough information.
--SA

1 solution

Root cause for the problem is that 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.

Ref: http://support.microsoft.com/kb/839174[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900