Skip to content

SQLitePCLRaw.bundle_e_sqlite3mc v2.1.11 cause SQLite Error 26 #10

@ali50m

Description

@ali50m

After upgrade to the latest version of SQLitePCLRaw.bundle_e_sqlite3mc in my personal project, it will throws a Exception says.

Microsoft.Data.Sqlite.SqliteException: 'SQLite Error 26: 'file is not a database'.'

I have simplified the issue into a test repo.

reproduce:

git clone [email protected]:ali50m/SqliteMcConsole.git
cd SqliteMcConsole
dotnet run --project .\src\SqliteMcConsole\

Run the project more than two times you will met the exception.

Unhandled exception. Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 26: 'file is not a database'.

workaround:

  1. downgrade the nuget SQLitePCLRaw.bundle_e_sqlite3mc to 2.1.10.
  2. Or delete the password setting in connection string.

env:

  1. windows 10 21H2 19044.5737
  2. dotnet SDK 9.0.203

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