Search Issue Tracker
Won't Fix
Votes
7
Found in
2018.3.0a10
2018.3.2f1
2019.1.0a8
2019.2.0a1
Issue ID
1119659
Regression
Yes
ReflectionTypeLoadException is thrown when retrieving assembly types in project that contains Immediate Window package
How to reproduce:
1. Open the attached "TestReflection.zip" project
2. Open the "TestReflection" scene
3. Enter the Play mode
4. Observe the Console window
Expected result: There are no exception errors.
Actual result: There is an error message that 'System.Reflection.ReflectionTypeLoadException' was thrown.
Reproducible with - 2018.3.0a10, 2018.3.3f1, 2019.1.0a8, 2019.1.0a15, 2019.2.0a2
Not reproducible with - 2017.4.0f1, 2017.4.19f1, 2018.3.0a9, 2019.1.0a7
Error thrown:
Exception: System.Reflection.ReflectionTypeLoadException: Exception of type 'System.Reflection.ReflectionTypeLoadException' was thrown.
at (wrapper managed-to-native) System.Reflection.Assembly.GetTypes(System.Reflection.Assembly,bool)
at System.Reflection.Assembly.GetTypes () [0x00000] in <ac823e2bb42b41bda67924a45a0173c3>:0
at TestReflection.Start () [0x0001c] in C:\Dev\Unity\TestReflection\Assets\Scripts\TestReflection.cs:14 ; Loader Exceptions: Could not load type of field 'Microsoft.CodeAnalysis.Scripting.Hosting.CoreAssemblyLoaderImpl:_inMemoryAssemblyContext' (0) due to: Could not resolve type with token 01000066 <...>
-
filod
Dec 12, 2019 10:56
same problem in 2019.3.0f1
-
SLGSimon
Jul 24, 2019 17:10
I'm getting this with 2019.1.11f1 when loading Microsoft.CodeAnalysis.CSharp.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
- The build size is larger when Models have Animation Type set to Generic
- Error "ArgumentException: Both 'ok' and 'cancel' strings are null or empty" logged when User is trying to create circular dependencies in UI Builder Hierarchy
- "SupportsRandomWriteOnRenderTextureFormat()" shows "False" when executed on 2023.2 and 6000.0 streams
- Size of ShadowCaster2D with Casting Source set to a Collider increases when RigidBody2D is attached to the GameObject
- GameObjects with a material derived from a Custom Lighting Surface Shader are displayed as skewed on quads when the Camera's Width and Height properties of the Viewport Rect are lower than 1
Resolution Note:
Immediate Package was an experimental package for which development was halted.