Search Issue Tracker
Fixed in 2019.2.X
Fixed in 2018.3.X, 2019.1.X
Votes
0
Found in
2019.2.0a4
Issue ID
1131451
Regression
No
[IL2CPP] SecurityException: The public key is not valid' when using embedded resource.resx with IL2CPP but not with Mono
Steps to reproduce:
1. Open user attached project
2. Build & Run an IL2CPP build on Windows Standalone or WebGL
3. Observe the SecurityException: The public key is not valid' error when retrieving the embedded resource string
SecurityException: The public key is not valid.
at System.Reflection.AssemblyName.get_FullName () [0x00000] in <00000000000000000000000000000000>:0
at System.AppDomain.LoadSatellite (System.Reflection.AssemblyName assemblyRef, System.Boolean throwOnError) [0x00000] in <00000000000000000000000000000000>:0
at System.Reflection.Assembly.InternalGetSatelliteAssembly (System.String name, System.Globalization.CultureInfo culture, System.Version version, System.Boolean throwOnFileNotFound, System.Threading.StackCrawlMark& stackMark) [0x00000] in <00000000000000000000000000000000>:0
...
Expected result: SecurityException: The public key is not valid' when using embedded resource.resx with IL2CPP exception should not occur
Reproduced in: 2019.2.0a5, 2018.3.7f1 on IL2CPP
No repro on Mono builds
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
- UI Toolkit meshes are fully rendered and rasterized when opacity is 0
- Light rendering artefacts appear in the Editor when assigning unsupported 3D Custom Render Texture in Camera’s Output Texture, unclearable errors and warnings spammed
- Memory leak when running a test with "GfxThreadingMode" set to "SplitJobs"
- Loading Unloaded unsaved Scene throws “ArgumentException” error in the Console
- Crash on std::__1::__tree_const_iterator when opening the Build Profiles window in a specific project
Resolution Note (fix version 2019.2):
Work around this issue by setting the public key for the assembly which has the embedded resource.