Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7042441
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:10:07+00:00 2026-05-28T02:10:07+00:00

I am working on a c# project which makes use of an SQLite3 database

  • 0

I am working on a c# project which makes use of an SQLite3 database and needs to be cross compatible between windows and linux.

The linux server is using version 3.2.8 and I am using the Managed Sqlite Library DLL 1.0.66.0.

I have copied the DLL to the server and when I run mono myexec.exe it displays the following error

Unhandled Exception: System.EntryPointNotFoundException:
sqlite3_open_v2 at (wrapper managed-to-native)
System.Data.SQLite.UnsafeNativeMethods:sqlite3_open_v2
(byte[],intptr&,int,intptr) at System.Data.SQLite.SQLite3.Open
(System.String strFilename, SQLiteOpenFlagsEnum flags, Int32
maxPoolSize, Boolean usePool) [0x00000] in :0 at
System.Data.SQLite.SQLiteConnection.Open () [0x00000] in :0 at AudioManagement.DatabaseConnection..ctor () [0x00000]
in :0 at
LinuxAudioManager.Configure.startConfiguration () [0x00000] in
:0 at LinuxAudioManager.Program.Main
(System.String[] args) [0x00000] in :0

This error is thrown when it attempts to either make the database file or open the connection, I am not sure which one it is.

Below is the code I am using in order create the connection

conn = new SQLiteConnection("Data Source=database.db");
conn.Open()

Thanks for any help you can provide.

UPDATE
I have just executed my program with the mono logging and found something rather strange. Its seems to have a problem loading the lib file. The output is below

Mono-INFO: DllImport attempting to load: ‘libsqlite3.so.0’. Mono-INFO:

DllImport loading location: ‘libsqlite3.so.0.so’. Mono-INFO: DllImport

error loading library: ‘libsqlite3.so.0.so: cannot open shared object

file: No such file or directory’. Mono-INFO: DllImport loading

library: ‘./libsqlite3.so.0.so’. Mono-INFO: DllImport error loading

library ‘./libsqlite3.so.0.so: cannot open shared object file: No such

file or directory’. Mono-INFO: DllImport loading: ‘libsqlite3.so.0’.

Mono-INFO: Searching for ‘sqlite3_open_v2’. Mono-INFO: Probing

‘sqlite3_open_v2’. Mono-INFO: Probing ‘sqlite3_open_v2’. Mono-INFO:

Probing ‘sqlite3_open_v2A’. Mono-INFO: Probing ‘sqlite3_open_v2A’.

Mono-INFO: DllImport attempting to load: ‘libsqlite3.so.0’. Mono-INFO:

DllImport loading location: ‘libsqlite3.so.0.so’. Mono-INFO: DllImport

error loading library: ‘libsqlite3.so.0.so: cannot open shared object

file: No such file or directory’. Mono-INFO: DllImport loading

library: ‘./libsqlite3.so.0.so’. Mono-INFO: DllImport error loading

library ‘./libsqlite3.so.0.so: cannot open shared object file: No such

file or directory’. Mono-INFO: DllImport loading: ‘libsqlite3.so.0’.

Mono-INFO: Searching for ‘sqlite3_open_v2’. Mono-INFO: Probing

‘sqlite3_open_v2’. Mono-INFO: Probing ‘sqlite3_open_v2’. Mono-INFO:

Probing ‘sqlite3_open_v2A’. Mono-INFO: Probing ‘sqlite3_open_v2A’.

The file libsqlite3.so.0 does exist but I can’t see why mono is then attempting to load
libsqlite3.so.0.so.

UPDATE 2
I think the first update error messages were pointing me in the wrong direction as I have created a symlink to match where it couldn’t find the lib file and mono is no longer saying that it couldn’t load something. However the original EntryPointNotFoundException is still displayed

UPDATE 3
Thanks to @bryanmac I have changed the code to use the Mono.Data.Sqlite dll instead which works fine on Linux under mono. However, using this DLL in Windows is now no longer working. VS2010 will build it without problems but when I try to execute it it will display the error

Unable to load DLL ‘sqlite3’: The specified module could not be found

I have downloaded an sqlite3.exe binary from the sqlite website and the executable to the executable of my program but my program still displays the error message on Windows.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:10:08+00:00Added an answer on May 28, 2026 at 2:10 am

    It looks like it can’t find the entry point in the native sqlite3 binary (sqlite3_open_v2). System.data.SQLLite is a managed ado.net wrapper that interops.

    Do you also have the native sqlite3 binaries? They are located here: http://sqlite.org/download.html

    EDIT:

    Noticed you’re using Mono and your download link below points to the windows dll download. Have tried looking at?

    http://www.mono-project.com/SQLite

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Our team is currently working on a large project which makes heavy use of
I'm working on a project which makes heavy use of extension methods to convert
I am working on a PHP project which makes extensive use of the MVC
I am working on a project that makes use of a MySQL Database to
I'm working on a simulation project using c++ on both windows and linux. There
I'm working in a project which needs to clean up some third party XSD
I am working on a project which will be using large datasets (both 2D
I'm working on someone else's project that makes heavy use of tableAdapters. The site
I'm currently working on a project which is using EF Code First with POCOs.
I'm currently working on a project which is using EF Code First with POCOs.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.