Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DllNotFoundException: Unable to load DLL 'e_sqlite3' or one of its dependencies #214

Closed
HamedFathi opened this issue Jun 8, 2021 · 1 comment
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@HamedFathi
Copy link

Describe the bug
I am using Microsoft.Data.Sqlite inside one of my plugins, below functionality.

private string[] GetSQLiteTables(string connStr)
{
    var tables = new List<string>();

    using var connection = new SqliteConnection(connStr);
    connection.Open();
    var command = connection.CreateCommand();
    command.CommandText = @"SELECT name FROM sqlite_master WHERE type ='table' AND name NOT LIKE 'sqlite_%' ORDER BY name;";
    using var reader = command.ExecuteReader();
    while (reader.Read())
    {
        tables.Add(reader.GetString(0));
    }

    return tables.ToArray();
}

but when I am loading the plugin I get the following error:

DllNotFoundException: Unable to load DLL 'e_sqlite3' or one of its dependencies: The specified module could not be found. (0x8007007E)

To Reproduce

The project and code is here

Expected behavior
I think the loader should load the DLL without a problem. Even I copied SQLitePCLRaw.provider.e_sqlite3.dll to the plugin folder but nothing happened.

Screenshots
image

@HamedFathi HamedFathi added the bug Something isn't working label Jun 8, 2021
@HamedFathi HamedFathi changed the title PlatformNotSupported in netstandard2.1 plugins DllNotFoundException: Unable to load DLL 'e_sqlite3' or one of its dependencies Jun 8, 2021
@natemcmaster
Copy link
Owner

Possibly a duplicate of #84. Can you read that thread? If it's the same issue, this issue isn't something we can fix here. You'll have to ask for help from Microsoft or use workarounds shared in that thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants