C
C#9mo ago
!Rushaan

Library e_sqlite3 not found

I'm trying to use sqlite database in my WPF .NET 4.7.2 Framework project using Microsoft.Data.Sqlite but I'm getting an error: Also e_sqlite3 is not present in Debug folder
System.TypeInitializationException: 'The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception.'

Exception: Library e_sqlite3 not found
plat: win
suffix: DLL
possibilities (2):
1) C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\runtimes\win-x86\native\e_sqlite3.dll
2) C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\e_sqlite3.dll
win TryLoad: C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\runtimes\win-x86\native\e_sqlite3.dll
thrown: System.ComponentModel.Win32Exception (0x80004005): The specified module could not be found
at SQLitePCL.NativeLibrary.TryLoad(String name, Loader plat, Action`1 log, IntPtr& h)
win TryLoad: C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\e_sqlite3.dll
thrown: System.ComponentModel.Win32Exception (0x80004005): The specified module could not be found
at SQLitePCL.NativeLibrary.TryLoad(String name, Loader plat, Action`1 log, IntPtr& h)
NOT FOUND
System.TypeInitializationException: 'The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception.'

Exception: Library e_sqlite3 not found
plat: win
suffix: DLL
possibilities (2):
1) C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\runtimes\win-x86\native\e_sqlite3.dll
2) C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\e_sqlite3.dll
win TryLoad: C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\runtimes\win-x86\native\e_sqlite3.dll
thrown: System.ComponentModel.Win32Exception (0x80004005): The specified module could not be found
at SQLitePCL.NativeLibrary.TryLoad(String name, Loader plat, Action`1 log, IntPtr& h)
win TryLoad: C:\Users\rusha\Source\Repos\QRCodeApp\QRCodeApp\bin\Debug\e_sqlite3.dll
thrown: System.ComponentModel.Win32Exception (0x80004005): The specified module could not be found
at SQLitePCL.NativeLibrary.TryLoad(String name, Loader plat, Action`1 log, IntPtr& h)
NOT FOUND
5 Replies
reflectronic
reflectronic9mo ago
Migrating from packages.config to PackageReference formats
Details on how to migrate a project from the packages.config management format to PackageReference as supported by NuGet 4.0+ and VS2017 and .NET Core 2.0
reflectronic
reflectronic9mo ago
assuming you haven't already done that
!Rushaan
!RushaanOP9mo ago
Lemme see i haven't done that so I'll try it rn
reflectronic
reflectronic9mo ago
ok i have looked at the package and, yes, this will fix the issue
!Rushaan
!RushaanOP9mo ago
Tysm It did fix the issue!
Want results from more Discord servers?
Add your server