- Home /
System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
I am trying to implement access to a SQLite
database in my game to load some game data. To establish a connection to the database, I am using System.Data.SQLite
which I imported to Visual C# 2012 Express
using NuGet.
I believe it is this circumstance which caused Unity to spit the following error at me:
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
I am clueless about this. What does it mean and how can I fix it?
Answer by ffxz7ff · Dec 27, 2013 at 10:38 PM
Well, I can't answer my own question, but I switched to using Mono.Data.Sqlite as described in the accepted answer here. And it works nicely so far. I'm happy.