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
- Metal Vertex Shader warning is being thrown when creating a VR Template Project
- Asset database warning is thrown when declaring font variable in the USS text file
- Memory Leak warnings are thrown when opening an imported Prefab
- Crash on mono_push_other_roots when setting Normal Thread Affinity
- Editor exits Play mode when another project is being created using Unity Hub 3.8.0-beta.1
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