- Home /
Question by
Dennis 3 · Oct 20, 2010 at 02:47 PM ·
mysqlcompile-error
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)
Comment
Answer by Ashkan_gc · Jun 04, 2013 at 11:46 AM
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
Answer by skovacs1 · Oct 20, 2010 at 04:47 PM
- 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.