System.Data.SQLite
Ticket Change Details
Not logged in
Overview

Artifact ID: f30c91203e89693b5ffcb228f3af624d9ea4944f
Ticket: b07e6f8ae48cb3a3a34f0fe8b4f91e051bf6a76b
Could not load file or assembly 'System.Data.SQLite, Version=1.0.109.0
User & Date: anonymous 2018-08-30 14:31:01
Changes

  1. Change icomment to:

    I cannot load System.Data.SQLite, Version=1.0.109.0 when trying to run console NET CORE 2.0 application. System.Data.SQLite, Version=1.0.109.0

    using (SQLiteConnection connection = new SQLiteConnection("***")) { connection.Open();

    var keyCommand = connection.CreateCommand(); keyCommand.CommandText = "select count(*) from Config"; var res = keyCommand.ExecuteScalar(); Console.WriteLine($"Res = {res}"); }

    I have tried to add System.Data.SQLite or System.Data.SQLite.Core from nuget but nothing good happens. If I create a windows only .net framework 4.7.* application everything works fine. But I see that on .net framework I have x86 and x64 folder with SQLite.Interop.dll and I don't have this library on NET CORE. Maybe it is the reason why I my program doesn't work? How can I fix this? Where can I find the interop library for NET CORE and how can I make my program run on NET CORE?

    P.S.: I tried copying System.Data.SQLite.dll to output directory but have no result!

  2. Change login to "anonymous"
  3. Change mimetype to "text/x-fossil-plain"
  4. Change severity to "Critical"
  5. Change status to "Open"
  6. Change title to:

    Could not load file or assembly 'System.Data.SQLite, Version=1.0.109.0

  7. Change type to "Incident"