Scenario AWhen you run the web-based installer for the first time, you might get the following error:
Quote:Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. An attempt was made to load a program with an incorrect format.
This is probably because you are installing it on a 64-bit operating system and GSP ships with a 32-bit version of System.Data.SQLite.dll. To resolve this, download the 64-bit version from the
download page or from
http://sqlite.phxsoftware.com/. Replace the existing dll in the bin directory with the 64-bit version. Then run the installer again.
Scenario BIf you get this error when running the source code version and you are on a 32-bit operating system, this is due to Visual Studio incorrectly copying the 64-bit version of System.Data.SQLite.dll to the bin directory when it should have copied the 32-bit version. As best I can tell this is a bug in Visual Studio, because I explicitly tell Visual Studio to use the 32-bit version before I package and release the source code.
The workaround is to delete the 64-bit version of System.Data.SQLite.dll from the directory TIS.GSP.Data.SQLite\assemblies\x64\. Then recompile. Visual Studio will then pick up the 32-bit version from the x86 directory.
Roger Martin
Lead Developer for Gallery Server Pro