From 66d28a483a7b9c6e7a10329fc46d86d3708dd8f9 Mon Sep 17 00:00:00 2001 From: Lev Stipakov Date: Tue, 24 Jun 2025 12:30:08 +0200 Subject: [PATCH 1/2] Remove event source check and creation This requires elevated privileges which virtual service user doesn't have. GitHub: #26 Signed-off-by: Lev Stipakov --- Service.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Service.cs b/Service.cs index 82567dc..392e6a0 100644 --- a/Service.cs +++ b/Service.cs @@ -28,10 +28,7 @@ public OpenVpnService() this.AutoLog = true; _eventLog = new EventLog(); - if (!EventLog.SourceExists(this.ServiceName)) - { - EventLog.CreateEventSource(this.ServiceName, "Application"); - } + // this assumes that OpenVPNService event source has been created, since it requires elevated privileges _eventLog.Source = this.ServiceName; _eventLog.Log = "Application"; From 28ead4cfc2cbb05bc5af5a2f59a203cf69adc75a Mon Sep 17 00:00:00 2001 From: Lev Stipakov Date: Tue, 24 Jun 2025 12:34:12 +0200 Subject: [PATCH 2/2] Bump version to 2.0.1.0 Signed-off-by: Lev Stipakov --- OpenVpnService.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenVpnService.csproj b/OpenVpnService.csproj index 1576dee..2687b1f 100644 --- a/OpenVpnService.csproj +++ b/OpenVpnService.csproj @@ -15,7 +15,7 @@ 512 false - 2.0.0.0 + 2.0.1.0 publish\ true Disk