What causes System.BadImageFormatException when constructing System.Data.SQLite.SQLiteConnection
SQLite contains unmanaged code, you can't run it on a 64-bit operating system unless you deploy the 64-bit version. Quick fix: Project + Properties, Build tab, Platform Target = x86.
Make sure you use correct assembly with respect to 32 and 64 bits.