Getting unity to accept Dll files = problems!

I’m having problem with getting unity to accept the dll files system.data and mono.data.sqliteclient.dll.

At first I got an error saying the version was too new, so I found old ones at OriginalDLL.com. But that only made VS15 work. Unity still wouldn’t accept them, saying “xx has non matching file name”.

I’ve checked that the files are only in one place, so it shouldn’t be confused about where to look whitch ones to use. They’re in the plugins/SQLitedlls folder, so that should be ok.

After fidling around, I’m got a new error:
Full error:
“ArgumentException: The Assembly System.Configuration is referenced by System.Data (‘Assets/plugins/System.Data.dll’). But the dll is not allowed to be included or could not be found.
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:146)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:152)
UnityEditor.AssemblyHelper.AddReferencedAssembliesRecurse (System.String assemblyPath, System.Collections.Generic.List1 alreadyFoundAssemblies, System.String[ ] allAssemblyPaths, System.String[ ] foldersToSearch, System.Collections.Generic.Dictionary2 cache, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:152)
UnityEditor.AssemblyHelper.FindAssembliesReferencedBy (System.String[ ] paths, System.String[ ] foldersToSearch, BuildTarget target) (at C:/buildslave/unity/build/Editor/Mono/AssemblyHelper.cs:184)
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()”

In my code I have this:

using System.Data;
using Mono.Data.SqliteClient;

And:

            string _strDBName = "URI=file:test.sql";

            SqliteConnection _connection = new SqliteConnection(_strDBName);
            SqliteCommand _command = (SqliteCommand)_connection.CreateCommand();

Previously I had IDb versions, but now i tried these. Still no dice. :frowning:

I’m using unity 5.5.2f1.

Anybody know what to do??

You need dlls for .NET 3.5 (relevant mono version). You cannot use the ones compiled using newer .NET.

And where do I find them? :slight_smile:

Still no help with this issue??

I really need it to work ASAP

Hm. Wierd. The problem seems to have gone way by it self!?