Skip to content

The type initializer for 'SQLite.SQLiteConnection' threw an exception #437

@onedevteam

Description

@onedevteam

I have in my PCL service this package installed from nuget.
Service is referenced in a windows phone 8.1 app project and android app project. In android app, everything works fine, but in winphone app, i'm getting an error

{"The type initializer for 'SQLite.SQLiteConnection' threw an exception."}

with innerException

{"Unable to load DLL 'esqlite3': The specified module could not be found. (Exception from HRESULT: 0x8007007E)"}

when i try to create database with:

var connection = new SQLiteConnection(path);

Path is:

"C:\\Data\\Users\\DefApps\\APPDATA\\Local\\Packages\\d97e146f-c80d-4061-ab67-2fcf5d035388_a1691p6wrfp9c\\LocalState\\db_sqlnet.db"

I have tried to install "SQLitePCL.native.sqlite3.v120_wp81" package that contain dll in PCL project, but it won't install.

Can someone help with this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions