Hi, Had the same problem. You will have to use the "appropriate" assembly for (x86 or x64).
The final step is to identify the target processor architecture on both the development and customer machines. Generally, x86 binaries will work on an x64 machine running Windows (using WoW64). However, there is a problem when using managed code. If the executable that starts the process consists entirely of managed code, it will run with the native processor architecture of the machine, which will be x64 on an x64 machine. Later on, this will cause assemblies containing any native code compiled for x86 (e.g. the "System.Data.SQLite.dll" mixed-mode assembly, the "SQLite.Interop.dll" native interop assembly, or the "sqlite3.dll" native library) to fail to load, typically resulting in a BadImageFormatException being thrown. [http://system.data.sqlite.org/index.html/doc/trunk/www/downloads.wiki] From: lohadas gunabalasingam <loha...@gmail.com> To: sqlite-users@sqlite.org, Date: 22.07.2013 14:38 Subject: [sqlite] syste.data.sqllite exection on .net vs 2010 w7 Sent by: sqlite-users-boun...@sqlite.org Hi All, I have been using the dll system.data.sqllite for vs2010 windows xp project and it worked fine. Now, I want to develop it in windows 7. I build the same project and I did not have any problem. when I run it, I got the following error.: BadImageFormatexception: Could not load file or assembly 'System.Data.SQLite, Version=1.0.65.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An attempt was made to load a program with an incorrect format. _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users _______________________________________________ sqlite-users mailing list sqlite-users@sqlite.org http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users