c# - Unity3D SQLite ArgumentException: The Assembly System.Configuration is referenced by System.Data -
i'm using unity3d 5 , mono develop compiler.
when clicked build mono compiler, says "build successfully".
when run game in editor, works fine , functions expected.
but when tried build .exe windows x86_64. shows error...
argumentexception: assembly system.configuration referenced system.data ('assets/plugins/system.data.dll'). dll not allowed included or not 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, buildtarget target) (at c:/buildslave/unity/build/editor/mono/assemblyhelper.cs:154) unityeditor.assemblyhelper.addreferencedassembliesrecurse (system.string assemblypath, system.collections.generic.list`1 alreadyfoundassemblies, system.string[] allassemblypaths, system.string[] folderstosearch, system.collections.generic.dictionary`2 cache, buildtarget target) (at c:/buildslave/unity/build/editor/mono/assemblyhelper.cs:160) unityeditor.assemblyhelper.addreferencedassembliesrecurse (system.string assemblypath, system.collections.generic.list`1 alreadyfoundassemblies, system.string[] allassemblypaths, system.string[] folderstosearch, system.collections.generic.dictionary`2 cache, buildtarget target) (at c:/buildslave/unity/build/editor/mono/assemblyhelper.cs:160) unityeditor.assemblyhelper.findassembliesreferencedby (system.string[] paths, system.string[] folderstosearch, buildtarget target) (at c:/buildslave/unity/build/editor/mono/assemblyhelper.cs:192)
here code of class uses sqlite test.
using unityengine; using system.collections; using unityengine.ui; using system.data.sqlite; using mono.data.sqlite; using system; using system.configuration; public class btnlogin : monobehaviour { public static string newtext = ""; // use initialization public void checkinfo(){ gameobject objinputfield = gameobject.findwithtag ("txtuser"); inputfield txtuser = objinputfield.getcomponent<inputfield> (); gameobject objinputfield1 = gameobject.find ("txtpass"); inputfield txtpass = objinputfield1.getcomponent<inputfield> (); //inputfield txtuser1 = getcomponent<gameobject.find ("txtuser")>(); //text mesj = getcomponent<gameobject.find ("txtuser")> (); debug.log ("move"); sqliteconnection con = new sqliteconnection (); con.connectionstring = glo.constring; con.open (); sqlitecommand cmd = new sqlitecommand (); cmd.commandtext = "select * tbl_items_basic"; cmd.connection = con; sqlitedatareader dr; dr = cmd.executereader (); string mesj = ""; int = 0; while (dr.read ()) { mesj = dr["itemname"].tostring(); i++; if (i == 2){ break; } } debug.log ( ": asd: " + mesj); if (txtuser.text == "genesis" && txtpass.text == "mallari") { application.loadlevel ("main0"); } else { //editorutility.displaydialog ("samplemessage", "the account not exist", "ok", "cancel"); txtuser.text = "acc not exist"; txtuser.textcomponent.color = color.red; txtpass.text = ""; } con.close (); }
}
i've tried add in reference assemby of system , system.configuration editing reference in explorer in mono. still gave me same error.
thanks.
Comments
Post a Comment