I have downloaded the source code of the Quartz.net Windsor integration project and got the sample console app working without any problems. I have created a similar sample Windows service using the same configuration. The sample service fails to start. When the service is started (using net start SimpleSvc) it says the service is not responding to the control function. When the quartz.net windsor integration is removed, the service starts without any errors. The event log isn't very helpful and just says there was a Quartz.SchedulerException.
Has anybody any experience of using Quartz.net Windsor integration inside a Windows Service? Or, how do I go about debugging this because at the moment I'm struggling to figure out exactly what the problem is.
To reproduce unzip the SampleService.zip file in the sample app and add to the solution then build. Run installutil on the service executable "SampleService.exe". Then run "net start SimpleSvc". If you comment out the first two lines in Program.Main the service will start as expected.
Thanks Mauricio that's it! Adding System.IO.Directory.SetCurrentDirectory(AppDomain.CurrentDomain.BaseDirectory); to service Main fixed the problem.