I have been trying quite a few things and searching all over, but am unable to solve the following problem. I am working in Unity 4.3 and trying to implement the gazecam example in a new project as a way to learn more about how the system works.
There is an error occurring. It seems to involve the combination of creating a C# script and adding the Newtonsoft.Json DLL to the project. I can run the original project as downloaded from github, but any combination of trying to create a similar system in a new project leads to the following error (either by adding the json dll first, then creating a C# script - but not other kinds of scripts - or vice versa):
- Code: Select all
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
At this point, I've deciphered the meaning behind a lot of functions and code in the sample project, but am at a complete loss as to how to get an original project actually running. This error makes it impossible to build in Unity and I haven't found any way to resolve the C#/json issue.
Do you have any advice for resolving this error?
Thanks for your help.
John