[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Service unable to start

Posted on 2008-11-05
Medium Priority
Last Modified: 2012-08-14
I've deployed a C# windows service using installutil. I can see the service in the mmc console but can't start it.

I'm getting this error, any ideas what is wrong or how to figure out?

Error 1053: The service did not respond to the start or control request in a timely fashion.
Question by:craigdev
  • 2
LVL 35

Expert Comment

ID: 22885587
There are two KB articles that address this error:

Maybe one of them will present a solution for you.
LVL 21

Expert Comment

ID: 22886505
It can also be a coding problem.  Your OnStart needs to complete within 30 seconds or you get that error.

Author Comment

ID: 22887932
the onstart function has a timer that ticks every 2 hours

also, when the service 'starts' there is not a 30 sec wait - it just stops straight away with that error

how are you supposed to debug services, anyway? how do i get exceptions or meaningful error messages?

LVL 21

Accepted Solution

mastoo earned 2000 total points
ID: 22888000
You need to catch exceptions in OnStart and your timer tick events, and log them in some reliable fashion.  To debug a service, my preferred approach is at the end of this:


Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article introduced a TextBox that supports transparent background.   Introduction TextBox is the most widely used control component in GUI design. Most GUI controls do not support transparent background and more or less do not have the…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question