- Home /
Add to MySql.Data error
I tried to join MySql.Data.dll in assets to enable Unity can connect database But when MySql.Data.dll added assets, the following error
How can I fix? Seems to have many similar problems, but most did not solve my problem
Unhandled Exception: System.Reflection.ReflectionTypeLoadException: The classes in the module can not 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
Did you use the offical $$anonymous$$ysql Connector for .Net / $$anonymous$$ono?
http://dev.mysql.com/downloads/connector/net/
Select the ".Net & $$anonymous$$ono" there.
It seems like the dll you use isn't compatible with mono. At least that's the easiest explanation why it wouldn't import properly into Unity.
Answer by 11Buff · Oct 10, 2016 at 08:39 AM
Upgrade or you can clear it and ignore it, or add a different namespace.
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Illuminating a 3D object's edges OnMouseOver (script in c#)? 1 Answer
Storing Player Sessions 0 Answers