Forum Libraries, Components, and Plugins

Error in using SQLite :- "Unable to load DLL 'e_sqlite3': The specified module could not be found."

navinkumarDnavinkumarD USMember ✭✭

I am trying to use SQLite-net in my Xamarin project. In the following code I am getting an exception at statement var conn = new SQLiteConnection(path);
as "Unable to load DLL 'e_sqlite3': The specified module could not be found." Could anyone please help with this.

 public SQLiteConnection GetConnection(string fileName)
        {
            try
            {
                var sqliteFilename = fileName + ".db3";
                string path = Path.Combine(ApplicationData.Current.LocalFolder.Path, sqliteFilename);

                var conn = new SQLiteConnection(path);

                // Return the database connection 
                return conn;
            }
            catch (Exception ex)
            {
                return null;
            }
    }
Tagged:

Best Answer

Answers

  • LizticDevLizticDev USMember ✭✭

    Did you install the package in every Project?
    If you are using Xamarin Forms, you need it in every Platform implementation.

  • navinkumarDnavinkumarD USMember ✭✭

    Yes I have added the Package in every Project.

Sign In or Register to comment.