Search Issue Tracker
Won't Fix
Votes
0
Found in
2017.4.0f1
2018.4.0f1
2019.2.0a1
2019.3.0a1
2020.1.0a1
Issue ID
1183654
Regression
No
System.Configuration.dll fails to load when running a built project
How to reproduce:
1. Open the SampleScene in the attached "case_1183654-ioc" project
2. Enter play mode
3. Notice the working GUI Label
4. Build a project with "Development Build" setting enabled
5. Run the built project
Expected results: GUI Label is shown in both cases
Actual results: GUI Label is missing in a build, NullReferenceExceptions are spammed in the build log
Reproducible with: 2017.4.32f1, 2018.4.8f1, 2019.2.6f1, 2019.3.0b3, 2020.1.0a4
Additional notes:
1. Full error message:
UnloadTime: 1.562800 ms
FileNotFoundException: Could not load file or assembly 'System.Configuration, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its
dependencies.
2. It is possible that error "Loading assembly failed: "Assets/Plugins/System.Configuration.dll" will be thrown in the Editor Console Window, however, this error can be cleared, and it does not cause NullReferenceExceptions during play mode
Comments (1)
-
fmarianacci
Sep 13, 2019 13:52
Thank for answer.
Is it possible to bypass this limitation with something like [DllImport("my .NET System.dll")] ?
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:
.NET System .dlls should not be added to the Unity project. Both in the editor and player the following error is emitted, indicating that this is not supported.
Failed loading assembly 'Managed/System.Configuration.dll'
Loading assembly failed: "Managed/System.Configuration.dll"