Click here to Skip to main content
12,953,937 members (43,119 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
OriginalGriff 6,464
CHill60 3,490
Maciej Los 3,123
ppolymorphe 2,020
Jochen Arndt 1,975

Advertise | Privacy | Mobile
Web01 | 2.8.170525.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