Weird "Waiting for log" problem in C# .NET WebDAV

Advertisement

cpanne
Joined:
Posts:
6

Weird "Waiting for log" problem in C# .NET WebDAV

Hello Together,

We have a C# project where we use the NuGet package of WinSCP and try to manage patches for a different software and download them from a Nextcloud via WebDAV.
Now switched from the version 6.1.2.0 to 6.5.3.0 (16364). The project is running in the background as a Windows Service as user System.

Now the problem:
with the new version we have problems to connect to the Nextcloud.
In the logs we see a lot of the following messages until the Proxy Server that we use for that closes the connection after 1 Minute.
[2025-08-20 02:03:03.647] [0003]     Waiting for log update and dispatching events for 800
[2025-08-20 02:03:03.725] [0007]   2nd generation collection count: 5
[2025-08-20 02:03:03.725] [0007]   Total memory allocated: 15521656
[2025-08-20 02:03:03.725] [0007]   Waiting for request event
[2025-08-20 02:03:03.834] [0007]   2nd generation collection count: 5
[2025-08-20 02:03:03.834] [0007]   Total memory allocated: 15529848
[2025-08-20 02:03:03.834] [0007]   Waiting for request event
Now that where it is getting weird.
When we execute the same code on the same machine as a User and not as System the connection can be build up (like we want to). We still see the messages for a few times but it generally works.
When we execute the same code on a different machine with the same proxy and in the same network and with the same operating system Windows Server 2019 (Build 17763) the code works in background as System and in foreground as a User.
Maybe I overlook something but I can't explain why that happens. In the old version we never had that issue.

I hope you can help me identify the issue if you need more information please tell me what you need.
  • Logs.zip (96.41 KB, Private file)

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,389
Location:
Prague, Czechia

Re: Weird "Waiting for log" problem in C# .NET WebDAV

Please post a session log file both from the old and the new version from the same enviornment.

Reply with quote

cpanne
Joined:
Posts:
6

Re: Weird "Waiting for log" problem in C# .NET WebDAV

Hi Martin,

I added the Logs in a .zip. I hope you can access them (private file).
Just for your information I replaced some things because of security reasons.

Thank you for looking at that problem :)
  • Logs.zip (96.41 KB, Private file)

Reply with quote

cpanne
Joined:
Posts:
6

Re: Weird "Waiting for log" problem in C# .NET WebDAV

Hi Martin,

I Tested all released versions from 6.1.2 to 6.5.3 and added the logs. The issue occured from 6.3.0 in every release.

I don't want to guide you in a wrong direction but maybe it has something to do with the "WebDAV/HTTP core upgraded to neon 0.33.0" Upgrade in 6.2.4 RC

Thanks in advance
  • LogsFrom6.1.2To6.5.3.zip (567.83 KB, Private file)

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Weird "Waiting for log" problem in C# .NET WebDAV

Thanks. So can you please verify that the 6.2.3 works and 6.2.4 does not?
(it might be easier to just try to login with the GUI)

Reply with quote

cpanne
Joined:
Posts:
6

Re: Weird "Waiting for log" problem in C# .NET WebDAV

Hi Martin,
It is very Important to know that I can't test it with using the UI because then the Problem isn't there. The problem is only there when The Process is getting Executet as a Service with the User SYSTEM. When i start the UI or execute our Program as a user over the Powershell the problem isn't there!

I testet the other Versions. I found out that all of the versions after 6.1.2 have this Issue. I Added the logs.

Thank you for your help
  • LogsFrom6.2.0To6.2.3.zip (226.31 KB, Private file)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
42,389
Location:
Prague, Czechia

Re: Weird "Waiting for log" problem in C# .NET WebDAV

Ok, then it might be due to OpenSSL 3 and its more strict security. Try this:
sessionOptions.AddRawSettings("MinTlsVersion", "10");
(Decreasing min TLS version has a side effect of decreasing security level even for newer protocol versions)

Reply with quote

cpanne
Joined:
Posts:
6

Re: Weird "Waiting for log" problem in C# .NET WebDAV

martin wrote:

Ok, then it might be due to OpenSSL 3 and its more strict security. Try this:
sessionOptions.AddRawSettings("MinTlsVersion", "10");
(Decreasing min TLS version has a side effect of decreasing security level even for newer protocol versions)
Hi Martin this didn't helped I also tried the Max TLS Setting to see if it works with TLS 11 and lower but then it just stops.

I'm not sure but my idea is that somehow Windows handles Tasks different when they are executed in the Background as a Service maybe the tasks are getting throttled down or something like that but if that is true why is it working in 6.1.2!? And why is it working on a different System with the same OS version and configured to use the same Proxy as the other Server?

I added the logs of my tests in a zip.
  • 6.3.0_MaxMinTLS.zip (156.71 KB, Private file)

Reply with quote

Advertisement

cpanne
Joined:
Posts:
6

Re: Weird "Waiting for log" problem in C# .NET WebDAV

Hi Martin,

I testet both of the build versions. The Error is still the same on both of them. I Added the Logs in a .zip.

Thank you for your help.
  • 6.2.0.14388And6.2.0.14389.zip (293.03 KB, Private file)
  • 6.2.0.14388And6.2.0.14389.zip (93.91 KB, Private file)

Reply with quote

reschi
Joined:
Posts:
3

Re: Weird "Waiting for log" problem in C# .NET WebDAV

Hi Martin,

I will be taking over this Problem from cpanne. I've Tested all Versions you sent and the error is still the same. I have added all the Logs in a .zip.

Thank you for your help.
  • LogsFrom_6.2.0.14193_To_16.2.0.14360.zip (185.92 KB, Private file)

Reply with quote

Advertisement

reschi
Joined:
Posts:
3

Re: Weird "Waiting for log" problem in C# .NET WebDAV

Hi Martin,

thank you for the new Builds, sadly still the same error. I sent you the logs in a zip folder again.
  • LogsFrom_6.2.0.14177_To_6.2.0.14191.zip (184.63 KB, Private file)

Reply with quote

reschi
Joined:
Posts:
3

Re: Weird "Waiting for log" problem in C# .NET WebDAV

Hi Martin,

Thank you for the new builds. I've tested them and they all worked. But those were 6.0.3. Versions and to my knowlage the issue started on 6.2.
  • LogsFrom_6.0.3.13589_To_6.0.3.13650.zip (165.63 KB, Private file)

Reply with quote

Advertisement

You can post new topics in this forum