Background: A client has given me a third-party developed Windows service which they would like me to get running for them. However when I start the service, it times out and I get the 1053 "service did not respond ... timely fashion" error.
I've reflected the assembly to get the code it is executing in its start method, but from a cursory glance it looks like it should return.
Actual question: Can someone explain why this service is causing the 1053 error?
(Checking the log file has confirmed that the timer has been initialised and fires more than once before the service is terminated.)
private void InitTimers()
{
if (this._config.RunMode == RunModes.Continuous)
{
this.srvcTimer.Interval = Math.Max(this._config.Interval.TotalSeconds, 1.0) * 1000.0;
}
else
{
this.srvcTimer.Interval = 60000.0;
}
this.srvcTimer.AutoReset = true;
this.srvcTimer.Enabled = true;
}