Search code examples
sqlitewindows-mobilepocketpc

Windows Mobile 6.1 + SQLite: Could not load type "System.Data.SQLite.SQLiteConnection"


I'm having toubles with SQLite library. I have to add some functionality to one legacy project (and therefor I need SQLite DB).

I've tried https://system.data.sqlite.org/downloads/1.0.94.0/sqlite-netFx35-binary-PocketPC-ARM-2008-1.0.94.0.zip, but anytime when debugger tries to get into function which contains SQLite calls (SQLiteConnection, SQLiteCommand) I get error:

Could not load type 'System.Data.SQLite.SQLiteConnection' from assembly 'System.Data.SQLite, Version=1.0.94.0, Culture=neutral, PublicKeyToken=1FDB50B1B62B4C84'.

File System.Data.SQLite.dll is added to References by standard way.

File SQLite.Interop.094.dll is added to root of the project and is set to BuildAction: Content and Copy to output..: Copy if newer.

Target device: Windows Mobile 6.1

Visual Studio 2005

Target platform: Windows Mobile 6 Professional SDK

Thanks for any help...


Solution

  • At first glance it looks good. So you have the two Sqlite-DLLs in your application-path? But, you are running Visual Studio 2005, so I guess you only have CompactFramework 2.5. Can you use Sqlite in the version for compact framework 3.5? If yes, please check if you have installed CF3.5 on your device (\Windows\cgautil.exe)