Compiling error with mysql. Pls Help

Hello I tried to Compile my game. But I always get an error.

I have no Idea :(

ArgumentException: The Assembly System.Configuration.Install is referenced by MySql.Data. But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) (at E:/BuildAgent/work/68355d6e5d19d587/Editor/Mono/AssemblyHelper.cs:52)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) (at E:/BuildAgent/work/68355d6e5d19d587/Editor/Mono/AssemblyHelper.cs:55)

2 Answers

2

Go to player settings and change api compatibility level to “.NET 2.0” instead of .NET 2 subset and it will work.
For mysql to work you need to have I18.dll and I18-west.dll in your plugins directory as well.
see this in our website for more info.
http://nooparmy.com/index.php/products/educational-materials/17-test.html

Thank you so much!

  • You are including an assembly called MySql.Data.
  • The assembly MySql.Data references the assembly System.Configuration.Install.
  • Unity's mono implementation either does not include or does not allow the assembly System.Configuration.Install.

Because MySql.Data depends on the System.Configuration.Install assembly that is either disallowed or not present, it cannot be compiled by Unity's mono compiler.