Search Issue Tracker
Third Party Issue
Votes
1
Found in
2020.3.33f1
Issue ID
UUM-600
Regression
Yes
log4net error is thrown when using .NET Standard 2.0 for Linux server builds
How to reproduce:
1. Open the user's attached project
2. Go to File -> Build Settings -> Player Settings -> Other Settings
3. Set Api Compatibility Level to ".NET Standard 2.0"
4. Go back to File -> Build Settings
5. Enable "Server Build"
6. Build the project for Linux
7. Run the built .x86_64 file via the Terminal
Expected result: no errors are encountered
Actual result: "log4net:ERROR Exception while reading ConfigurationSettings. Check your .config file is well formed XML. <...>"
Reproducible with: 2020.3.4f1, 2020.3.33f1
Not reproducible with: 2019.4.38f1, 2020.3.3f1, 2021.3.1f1, 2022.1.0f1, 2022.2.0a11
Notes:
1. Other exceptions are encountered on non-reproducible versions (Exception: Magic number is wrong: 542)
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- “Remove Unused Overrides” available on not loaded Scene and throws “ArgumentException: The scene is not loaded” warning
- Adaptive Probe Volume occlusion edge is calculated incorrectly when viewing probes near geometry edges
- Sampling a texture using an HLSL file throws shader errors and the code does not compile
- "Graphics.CopyTexture called with null source texture" error when Base Camera of an Overlay Camera is removed with DX11 Graphics API and Compatibility Mode enabled
- WebGL sends wrong value with large numbers when SendMessage function is used
Resolution Note:
After investigation I was able to confirm that the log4net error was actually a TypeLoadException under the hood which indicates that there are issues when static class initialization. I was able to fix the project by replacing the project's System dlls with ones from nuget: https://github.com/xoofx/UnityNuGet