Windows启动时候报这个错,不应在OnStart放执行长的过程,需要开另一个线程来做才能顺利启动
Windows Services: OnStart loop - do I need to delegate?
http://stackoverflow.com/questions/649935/windows-services-onstart-loop-do-i-need-to-delegate
C#写windows服务实例
http://blog.csdn.net/suixufeng/article/details/5623380
以下是增长启动时间的方法,设置ServicesPipeTimeout,默认是30秒
Error: 'The service did not respond in a timely fashion' (ServicesPipeTimeout) when attempting when attempting to start, stop or pause a service
http://www.gfi.com/support/products/gfi-mailarchiver/Error-The-service-did-not-respond-in-a-timely-fashion-ServicesPipeTimeout-when-attempting-when-attempting-to-start-stop-or-pause-a-service