Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Internal complier error help

Discussion in 'Editor & General Support' started by kd5crs, Apr 14, 2013.

  1. kd5crs

    kd5crs

    Joined:
    May 27, 2012
    Posts:
    6
    I'm getting the following error:

    Code (csharp):
    1. Internal compiler error. See the console log for more information. output was:
    2. Unhandled Exception: System.TypeLoadException: Could not load type 'System.Reflection.AssemblyConfigurationAttribute' from assembly 'mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'.
    3.  
    4.   at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0
    5.  
    6.   at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0
    I've reinstalled .NET framework, and then reinstalled Unity. What else can I try? How do I reinstall whatever installs "System.Reflection"?

    Thanks.
     
  2. UnLogick

    UnLogick

    Joined:
    Jun 11, 2011
    Posts:
    1,745
    Man too little information. :)

    What kind of project are you trying to compile on what kind of system?

    If you set the build target to flash System.Reflection is supposed to disappear as that's not supported on the platform. (Though I seriously hope that's not how we show it!)

    What kind of scripts are you trying to compile?
    Start with an empty project, add a javascript and see if it that compiles, then add a csharp script and see if that compiles.