Internal Compiler Error Question

I have a DLL which contains my custom packet structures to share between my unity client and my server. I added a few new structures to the DLL, rebuild it and copied it over to the Assests/Plugins folder like normal. Now I am receiving the following error message which is preventing me from moving further with the project:

Internal compiler error. See the console log for more information. output was:
Unhandled Exception: System.TypeLoadException: Could not load type 'System.Runtime.InteropServices.GuidAttribute' from assembly 'mscorlib, Version=2.0.5.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'.

  at (wrapper managed-to-native) System.Reflection.Assembly:InternalGetType (System.Reflection.Module,string,bool,bool)

  at System.Reflection.Assembly.GetType (System.String name, Boolean throwOnError, Boolean ignoreCase) [0x00000] in <filename unknown>:0 

  at System.Reflection.Assembly.GetType (System.String name) [0x00000] in <filename unknown>:0 

  at Mono.CSharp.RootNamespace.GetTypeInAssembly (System.Reflection.Assembly assembly, System.String name) [0x00000] in <filename unknown>:0 

  at Mono.CSharp.RootNamespace.LookupTypeReflection (Mono.CSharp.CompilerContext ctx, System.String name, Location loc, Boolean must_be_unique) [0x00000] in <filename unknown>:0 

  at Mono.CSharp.GlobalRootNamespace.LookupTypeReflection (Mono.CSharp.CompilerContext ctx, System.String name, Location loc, Boolean must_be_unique) [0x00000] in <filename unknown>:0 

  at Mono.CSharp.Namespace.LookupType (Mono.CSharp.CompilerContext ctx, System.String name, Location loc) [0x00000] in <filename unknown>:0 

  at Mono.CSharp.Namespace.Lookup (Mono.CSharp.CompilerContext ctx, System.String name, Location loc) [0x00000] in <filename unknown>:0 

  at Mono.CSharp.TypeManager.CoreLookupType (Mono.CSharp.CompilerContext ctx, System.String ns_name, System.String name, Kind type_kind, Boolean required) [0x00000] in <filename unknown>:0 

  at Mono.CSharp.PredefinedAttribute.Resolve (Boolean canFail) [0x00000] in <filename unknown>:0 

  at Mono.CSharp.PredefinedAttributes.Initialize () [0x00000] in <filename unknown>:0 

  at Mono.CSharp.TypeManager.InitOptionalCoreTypes (Mono.CSharp.CompilerContext ctx) [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

Any advice would be appreciated. I have seen other threads with similar issues. The only resolve was to completely uninstall and re-install unity. I have seen this type of error before regarding binary serialization across 2 programs and not providing any binding instructions between the two. Could this be the same issue?

I hate bumping threads…but, I still have not found an answer to this one.

EDIT: Finally found the issue after finding the right keywords to search on in the forums.

Make sure your DLL is compiled for .NET framework of 3.5 or earlier. I forgot mono is not up to 4.0 and had that targeted. DUH :slight_smile:

I am building for 3.5 and i get no success. Although it seems as though it is not installed, which is weird as the build i successful. No installations of .net3.5 work. When i solve that i will get back whether missing 3.5 is the issue or not.

I also have this issue. Can you help me fix this issue?