Search Issue Tracker
Third Party Issue
Third Party Issue in 2020.3.X
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
- Texture2D hash changes inside of an AssetBundle when rebuilding a SpriteAtlas bundle with an empty AssetPostprocessor Script enabled
- Aniso Level still applies when Generate MipMap is disabled in Texture Import Settings
- Mipmap Limit Groups long names are not truncated when creating a new Mipmap Limit Group with a long name
- “ArgumentException: Invalid double parameter.” error is thrown when Infinity is typed into the Fixed Timestep field
- GameObject becomes gray when using HDRP and STP together on macOS
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
Resolution Note (2020.3.X):
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