Welcome Guest Search | Active Topics | Members | Log In | Register
Info: Could not load file or assembly 'System.Data.SQLite' or one of its dependencies. Options
Roger Martin
Posted: Sunday, October 05, 2008 1:32:09 PM
Rank: Administration

Joined: 8/3/2007
Posts: 847
Location: Fort Atkinson, WI
Scenario A
When 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 B
If 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
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Main Forum RSS : RSS

YAFVision Theme Created by Jaben Cargman (Tiny Gecko)
Powered by Yet Another Forum.net version 1.9.1.2 (NET v2.0) - 9/27/2007
Copyright © 2003-2006 Yet Another Forum.net. All rights reserved.