Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I created 2 Window Service projects. I can install / uninstall both successfully. In the Services panel, I tried to Start them. One is OK, but another one returns Error 1053. Referring to
https://www.youtube.com/watch?v=fY5mEzKt_i4 
I adjusted the ServicePipeTime but it does not work. What's possible solution for fixing it? Thanks.

What I have tried:

Can't Start Window Service w/ error 1053
Posted
Updated 5-Jul-19 5:26am
v2

We can't tell - there are far too many different possibilities, and without even the code our hands are not so much tied as nailed to the desk...

Start here: c# - Error 1053 the service did not respond to the start or control request in a timely fashion - Stack Overflow[^] and see what you can find out.
 
Share this answer
 
v2
Comments
s yu 6-Aug-19 11:14am    
The Error 1053 was gone. Thanks.
OriginalGriff 6-Aug-19 11:16am    
You're welcome!
Most likely explanation is that your "Start" function isn't returning within 90 seconds, probably because you are "doing work" on it such as looping for input, waiting for a task, in a sleep loop etc. The Start method is only for start-up, you don't do any work on it.
 
Share this answer
 
Chacnes are high that you're actually doing work in your Start method instead of just starting a thread with your actual service.

The Start method should return control back to the Service Control Manager as quickly as possible, NOT do work in it.
 
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