-
- paevensonKratos
- Posts: 9
- Joined:
ReflectionTypeLoadException
I have no idea what happened but I now have this error I cannot fix.
Thanks,
Paul
Any idea on what is going on? I get this error when I try to Build from the NoesisGUI settings and when I run the scene. In the previous version I was crashing constantly(I updated to 1.1.5 today). Everything works fine importing to a new Unity Project, but I need to fix this in my current project.ReflectionTypeLoadException: The classes in the module cannot be loaded.
System.Reflection.Assembly.GetTypes () (at /Users/builduser/buildslave/monoAndRuntimeClassLibs/build/mcs/class/corlib/System.Reflection/Assembly.cs:371)
Noesis.Extend.RegisterExtendClasses () (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisExtend.cs:122)
Noesis._Extend.RegisterExtendClasses () (at Assets/Plugins/NoesisGUI/Scripts/Core/NoesisExtendImports.cs:37)
Noesis.BuildToolKernel..ctor (System.String platform) (at Assets/Editor/NoesisGUI/NoesisBuildToolKernel.cs:61)
Thanks,
Paul
-
-
sfernandez
Site Admin
- Posts: 2908
- Joined:
Re: ReflectionTypeLoadException
Hi Paul,
The exception in Assembly.GetTypes() occurs when any type in the assembly depends on a type in an assembly that has not been loaded. This means that your project contains some assemblies that depend on other assemblies not loaded when NoesisGUI initializes.
There is no problem to catch and discard the exception, while these unloaded types are not related to Noesis (they are not extended classes used in xaml files).
Another customer reported us this same problem and it will be solved for the next release.
PS: I'll send you a PM.
The exception in Assembly.GetTypes() occurs when any type in the assembly depends on a type in an assembly that has not been loaded. This means that your project contains some assemblies that depend on other assemblies not loaded when NoesisGUI initializes.
There is no problem to catch and discard the exception, while these unloaded types are not related to Noesis (they are not extended classes used in xaml files).
Another customer reported us this same problem and it will be solved for the next release.
PS: I'll send you a PM.
-
- paevensonKratos
- Posts: 9
- Joined:
Re: ReflectionTypeLoadException
Thanks sfernandez for getting back to me so quickly! The fix you sent me was a great help. One addition you may want to add to each function is a check to make sure types != null before each for loop. Otherwise you will get a NullReferenceException when the loop tries to access the types array.
Thanks again for your timely response!
-Paul

Thanks again for your timely response!
-Paul
-
-
sfernandez
Site Admin
- Posts: 2908
- Joined:
Re: ReflectionTypeLoadException
You are welcome.
I will add that check as you suggested, thanks for your collaboration.
Regards,
- Sergio
I will add that check as you suggested, thanks for your collaboration.
Regards,
- Sergio
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest