Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Can't build project "System.Reflection.ReflectionTypeLoadException "

Discussion in 'Flash' started by EricD, Apr 17, 2012.

  1. EricD

    EricD

    Joined:
    Sep 7, 2011
    Posts:
    128
    When I try to build my project for flash I get this error:

    Code (csharp):
    1. Internal compiler error. See the console log for more information. output was:
    2. Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
    3.   at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
    4.   at System.Reflection.Assembly.GetTypes () [0x00000] in <filename unknown>:0
    5.   at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in <filename unknown>:0
    6.   at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in <filename unknown>:0
    7.   at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in <filename unknown>:0
    8.   at Mono.CSharp.Driver.LoadReferences () [0x00000] in <filename unknown>:0
    9.   at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
    10.   at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
    11.  
    Has anyone got an idea what's going on here? The game runs fine on all other platforms.
     
  2. EricD

    EricD

    Joined:
    Sep 7, 2011
    Posts:
    128
    anyone?
     
  3. Rodrigo

    Rodrigo

    Joined:
    Nov 2, 2009
    Posts:
    5
    Does it also work for the web target?

    Do you have only source code or also libraries in your project?
     
  4. EricD

    EricD

    Joined:
    Sep 7, 2011
    Posts:
    128
    I use Prime31 plugins for iOS Mac. I guess I can remove them and see what happens.
     
  5. EricD

    EricD

    Joined:
    Sep 7, 2011
    Posts:
    128
    removing all plugins fixed it.