question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Method not found: 'System.String SQLitePCL.raw.sqlite3_errstr(Int32)

See original GitHub issue

Description

When use entityframework core with sqlite there is some issue with paket, it generates wrong dependency so when I run the program it throws exception " Method not found: 'System.String SQLitePCL.raw.sqlite3_errstr(Int32)".

Repro steps

I create a repository to reproduce: https://github.com/albertwoo/PaketIssue

  1. Project “UseNuget” is just a console project with a dependency to “Microsoft.EntityFrameworkCore.Sqlite”. It works as expected.
  2. Project “UsePaket” is powered by paket, actually it is just the copy of project “UseNuget”, I just use command “paket convert-from-nuget”. I can build it but if I use “dotnet run”. The exception happens: Unhandled Exception: System.MissingMethodException: Method not found: 'System.String SQLitePCL.raw.sqlite3_errstr(Int32)'. at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db) at Microsoft.Data.Sqlite.SqliteConnection.Open() at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnection(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Sqlite.Storage.Internal.SqliteRelationalConnection.Open(Boolean errorsExpected) at Microsoft.EntityFrameworkCore.Sqlite.Storage.Internal.SqliteDatabaseCreator.Exists() at Microsoft.EntityFrameworkCore.Storage.RelationalDatabaseCreator.EnsureCreated() at Microsoft.EntityFrameworkCore.Infrastructure.DatabaseFacade.EnsureCreated() at Program.main(String[] argv) in D:\CodeBase\Playground\PaketIssue\UsePaket\Program.fs:line 20

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:10 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
keweisbrodcommented, Aug 15, 2019

I had the same issue, downgrading the versions of Microsoft.Data.Sqlite.core to 2.0.0 and SQlitePCLRaw.bundle_winsqlite3 to 1.1.8 fixed the error.

0reactions
DevDeFluxcommented, Aug 15, 2019

I downgrade the version of SQLitePCL.raw.sqlite3 to an older version? I am testing now

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.MissingMethodException: 'Method not found': Error
MissingMethodException : 'Method not found: 'System.String SQLitePCL.raw.sqlite3_column_name(SQLitePCL.sqlite3_stmt, Int32)'.' Has anyone else ...
Read more >
An exception "Method not found" is thrown in .NET Core ...
When another package, used in the application, has dependency to a newer version of SQLitePCLRaw, the SQLite raw assemblies get overwritten, and due...
Read more >
Method not found: string SQLitePCL.raw. ...
This appears to be an SQLitePCL issue. The best course of action would be to file a GitHub issue with the following project:...
Read more >
SQLite c# | Tizen Developers
I've done like here and have following error with Tizen 5: Method not found: 'Int32 SQLitePCL.ISQLite3Provider.sqlite3_win32_set_directory(Int32, System.String)' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found