Click here to Skip to main content
15,887,485 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I have developed a windows service to Archive data. The service installation is fine and running successfully on the test servers. But in production server there is an issue coming
"Service could not respond in a timely fashion". The build is the same as that worked.

What I have tried:

Installed windows service for Data Archival and ran in test server. But in production Server Issue persists.
Posted
Updated 22-Jul-16 3:03am
Comments
OriginalGriff 22-Jul-16 8:34am    
Without some idea of what the code is doing?Not a whole lot we can do to help from just that, I'm afraid...
Use the "Improve question" widget to edit your question and provide better information.
F-ES Sitecore 22-Jul-16 8:35am    
It means the code on your onstart event is taking too long or is not responding properly or maybe it crashed. Obviously it's impossible for us to tell why that might be, you'll just need to look at what it's doing and ensure it has the resources etc it needs. Maybe add some logging to the start-up procedure to give you a better idea what is going on.
ZurdoDev 22-Jul-16 8:48am    
How can we possibly know why your service is not working? If I told you my car worked yesterday but won't work today would you be able to help?

1 solution

well, you havnt shown us any code, but I'd suggest your service startup OnStart() code is 'heavy' .. you can request 'more time' from the service manager by either threading it/arranging your program so OnStart() finishes 'quickly'(*1)

this may also help :-

C#
ServiceBase.RequestAdditionalTime(4000);  // 4 seconds 


(*1) 'quickly' is a relative term - I cant remember what the default is :-(
 
Share this answer
 
v2

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