- Home /
Unity3d 3.4.1 sqlite bulid error
I find system.data.dll from the monodevelop folds
and run it, no issue
but when I build it,
it show:
ArgumentException: The Assembly System.Configuration is referenced by System.Data. But the dll is not allowed to be included or could not be found. UnityEditor.AssemblyHelper.AddReferencedAssemblies Recurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) UnityEditor.AssemblyHelper.AddReferencedAssemblies Recurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) UnityEditor.AssemblyHelper.AddReferencedAssemblies Recurse (System.String assemblyPath, System.Collections.Generic.List`1 alreadyFoundAssemblies, System.String[] allAssemblyPaths, System.String[] foldersToSearch, System.Collections.Generic.Dictionary`2 cache) UnityEditor.AssemblyHelper.FindAssembliesReference dBy (System.String[] paths, System.String[] foldersToSearch) UnityEditor.HostView:OnGUI()
how to fix it
Answer by Jehos · Nov 07, 2011 at 10:51 AM
What import (or using) do you use to include sqlite?
Are you using any code stripping?
I put system.Data and $$anonymous$$ono.Data.SqliteClient in my folder. In my c# script, I write : using System.Data; using $$anonymous$$ono.Data.SqliteClient; and do not use code stripping
Answer by Graham-Dunnett · Nov 07, 2011 at 04:57 PM
Copy System.Configuration.dll into the Unity project. That's what the error message is saying is missing. (If you have already done this, then the error message means that this DLL is not allowed to be used in a Unity project, so you're out of luck.)
I have tried your suggestion with no luck. this seems to be indicative (at least for me) of trying to build for Android. Is that possible [using system.data and $$anonymous$$ono.Data.SqliteClient] on Android (fyi this is all for an implementation of sqlite)?
Answer by dabears · Feb 26, 2015 at 09:59 PM
Probably not the best solution but its what I did to fix the problem
At first I tried the free route which uses System.Data and Mono.Data.SqliteClient
However that is what lead me to this post and the error above.
Trying to spend the least amount of time trying to fix the error, I tried the paid solution.
However after following the readme I still had the above errors. It wasnt until I cleared out the plugins directory that it worked.
Im still hoping the free version works. And I have asked in the comments above, but even still it probably should be its own question. FYI this is specifically for building. Regular "playing" of the scene worked fine.