Method not found: 'System.String SQLitePCL.raw.sqlite3_errstr(Int32)
See original GitHub issueDescription
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
- Project “UseNuget” is just a console project with a dependency to “Microsoft.EntityFrameworkCore.Sqlite”. It works as expected.
- 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:
- Created 4 years ago
- Comments:10 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
I downgrade the version of SQLitePCL.raw.sqlite3 to an older version? I am testing now