Today while working with .NET Windows services, I found that my service had inexplicably stopped reporting its status to the SCM. Despite returning successfully from the OnStart method, the service was always killed by the SCM, which cited a timeout of 30 seconds without response.
After much Googling, I discovered the answer: .NET services compiled in debug mode do not report to the SCM, even though OnStart is called as usual. The solution was to always compile in Release mode.
No comments:
Post a Comment