Compiler errors

Hello i export a scene which works absolutely fine for me. theres also very few scripts apart from standard unity ones, realistic fps prefab and a few other small scripts. Im also using game draw so maybe thats an issue. When i export a scene and send to someone else i get the following errors in the console:


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 :0

at Mono.CSharp.RootNamespace.ComputeNamespaces (System.Reflection.Assembly assembly, System.Type extensionType) [0x00000] in :0

at Mono.CSharp.RootNamespace.ComputeNamespace (Mono.CSharp.CompilerContext ctx, System.Type extensionType) [0x00000] in :0

at Mono.CSharp.GlobalRootNamespace.ComputeNamespaces (Mono.CSharp.CompilerContext ctx) [0x00000] in :0

at Mono.CSharp.Driver.LoadReferences () [0x00000] in :0

at Mono.CSharp.Driver.Compile () [0x00000] in :0

at Mono.CSharp.Driver.Main (System.String[ ] args) [0x00000] in :0


any idea? ive tried deleting all scripts as well as the fps prefab but no luck. thanks :slight_smile:

Do you have any DLLs in your project?

just had a look theres a few in scriptassemblies folder such as Assembly-CSharp.dll and Assembly-UnityScript.dll and a few others. arent these just standard unity stuff?

Kind of digging up an old Thread but i found this one when googling and figured it may help someone out.

I had the same issue, would build with MonoDevelop or VS but soon as i dragged certain DLLs into the assets folder i would get the ReflectionTypeLoadException. I found the answer in the editors console log located at ‘%appdata%/Local/Unity/Editor/Editor.log’. In my case, in my dll, i was referencing System.Drawing.dll. I had to find it under Unity’s mono library folder ([mono install location]/Editor/Data/Mono/lib/mono/2.0) and put it in the assets folder.