To read article click HERE.
Wednesday, June 17, 2009
In the time, when you work on development a windows service not possible to debug it. A solution is a converting service to console application or creating additional service runner or anymore. I want to present very simple, effective and easy way how to resolve this. In debug mode will run application and in not debug mode will run service.
public partial class ServiceRunner : ServiceBase
static void Main()
//Run Windows Service
protected override void OnStart(string args)
protected override void OnStop()