WCF inside Windows Service: HTTP could not register URL http://+:8000
Following the usual-subject kind of MSDN tutorials to make a Windows Service able to communicate with a WPF application (that is have a WCF service hosted inside your Windows Service) I ended with this kind of app.config section: <services> <service name=”ConSense.Sensors.Service.ConSenseSensorsWcfService” behaviorConfiguration=”ConSenseSensorsWcfServiceBehavior”> <host> <baseAddresses> <add baseAddress=”http://localhost:8000/ConSense/service”/> </baseAddresses> </host> <!– this endpoint is exposed at the base address provided by host: …
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);



