Service installation fails as event source already exists
问题 I'm trying to configure a Topshelf-based Windows service to log to a custom event log using Topshelf.Log4Net and log4net. This works fine if I run the application in command-line mode. When I try to install the service with BillsTestService.exe install , I get: INFO Topshelf v3.1.107.0, .NET Framework v4.0.30319.18052 DEBUG Attempting to install 'BillsTestService' Running a transacted installation. ... Service BillsTestService has been successfully installed. Creating EventLog source