Click here to Skip to main content
13,191,400 members (82,499 online)
Rate this:
Please Sign up or sign in to vote.
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 24-Mar-12 4:12am
SAKryukov 24-Mar-12 18:51pm
Not enough information.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.


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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web02 | 2.8.171017.1 | Last Updated 24 Mar 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100