Log4Net in a Windows Service
Requirement: I want a Windows Service under LocalService (and not LocalSystem see Microsoft MSDN: Secure Hosting and Deployment of WCF Services ) using Log4Net starting when the service’s Main() method is called – so I can see if the service starts up at all Seems easy, but wut – no logfile created! The help at Apache FAQ: Why doesn’t the …
Debugging a Windows Service
This may be blatantly obvious for most developers, but just to save someone the time to figure this out by himself: To attach the debugger to your process put some sleep into the service’s Main method so you got enough time to attach before whatever may be causing an exception System.Threading.Thread.Sleep(10000);
