Debug System.Reflection.ReflectionTypeLoadException

Hello all,

I am running into an issue importing a 3rd party library to which I do not have source access.
Importing it using the “PC and Mac Standalone” profile works just fine, but it bombs out on the Web Profile.
I’m aware the Web Player is limited beyond good and evil but this is not what this question is about.

How is one supposed to debug Exceptions like the following without having access to the source?

Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
  at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
  at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 
  at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 

Thank you for any help.

This question is extremly old, but I’m having the same error with Unity 5 and seems more people has the same issue so I post my workaround and hope it helps to someone else.

In my project, the issue is caused by UVC package. It comes with DLLs instead of source code.

When UVC is in the project, any package that adds custom menus to the editor, will throw the error.
I only have 1 custom menu and it’s useless, so the workaround is to remove it renaming the packages’s “Editor” folder.
People with tons of/or useful custom menus will need to find a different workaround or avoid using packages without source code.

Edit:
I found that renaming “Editor” folders doesn’t remove the custom menu, but it fixes the issue, so the workaround should be valid to people with more custom menus.

For me, it was the imported store asset. I deleted the plugins folder and all is well.