Hi, I stumbled on a Dll-conflict with an event server plugin integration on 2024 R1. The problem is that I cannot load System.Text.Json.dll version from the plugin code (System.IO.FileLoadException - Could not load file of assembly…).
- In the plugin I reference version 8.0.1024 of System.Text.Json.dll (NuGet 8.0.5)
- The event server (2024 R1+hotfixes) ships with version 4.700.20.21406
- The event server does assembly binding (VideoOS.Event.Server.exe.config): 0.0.0.0-4.2.0.1 → 4.2.0.1
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Text.Json" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-4.0.1.2" newVersion="4.0.1.2" />
</dependentAssembly>
</assemblyBinding>
This problem does not happen on for example 2023 R2 since the event server doesn’t ship with System.Text.Json.
I rather not downgrade System.Text.Json in my plugin:
- Complicated since this library is just a dependency of other libraries
- There are CVEs reported on versions prior to 8.0.5.
What is the recommended solution for this problem?