Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ATL VS2010 service
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 5:12am
Comments
SAKryukov at 24-Mar-12 18:51pm
   
Not enough information.
--SA

1 solution

Rate this: bad
good
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.
 
Ref: http://support.microsoft.com/kb/839174[^]
  Permalink  

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



Advertise | Privacy | Mobile
Web04 | 2.8.1411022.1 | Last Updated 24 Mar 2012
Copyright © CodeProject, 1999-2014
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