An unhandled exception of type 'System.Data.SQLite.SQLiteException' occurred in System.Data.SQLite.dll
Additional information: SQL logic error or missing database
%1 is not a valid Win32 application.
when I try to execute the sqlite command "select load_extension('mod_spatialite')". This happens when i execute the SQLite.Data.SQLite.SQLiteCommmand. If I do it outside the program, the program exits immediately. If I use the 32-bit equivalent for the mod_spatialite or sqlite, and set the program to x86, I get no error.
I would really like to use the x64 version, but have had no luck in a VS 2013 or VS 2015.
Steve