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
- Editor Perforce login fails when Perforce shows a license expiry warning
- Assertion failed error in HDRP builds when enabling STP via script
- FBX Resamples Curves incorrectly when importing FBX files
- ProBuilder GameObject Faces disappear when increasing the Sides Count value
- FileUtil.CopyFileOrDirectory throws IOException when destination parent folder does not exist
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