Welcome Guest Search | Active Topics | Members | Log In | Register
SQLite reference failure after compiling Options
compugraph
Posted: Monday, October 06, 2008 8:04:48 AM
Rank: Member

Joined: 10/1/2008
Posts: 18
Location: Germany
Hi,

I got an error running gsweb after compiling:

running the already compiled version everything is o.k. (application is running, db is fine).

Exchanging the dll's with my compiled ones (nothing changed) results in an Assembly System.Data.SQLite assembly load failure (same .config files). Application error is: Assembly...SQLite not found, tried to load an assembly with wrong format, SystemBadImageFormatException).

the compiled project also shows that error. (using the .net 3.5 sqlserver web.config).

Ralf.
Roger Martin
Posted: Monday, October 06, 2008 8:25:49 AM
Rank: Administration

Joined: 8/3/2007
Posts: 847
Location: Fort Atkinson, WI
My guess is you are compiling it on a 32-bit operating system. Go into the assembly\x64 folder of the SQLite project and delete System.Data.SQLite.dll. That will force Visual Studio to use the 32-bit version in the x86 directory.

As best I can tell, this is a problem with Visual Studio. My dev PC is x64, but I changed the project reference to use the 32-bit version in the code you downloaded. However, Visual Studio *still* tries to use the 64-bit version.


Roger Martin
Lead Developer for Gallery Server Pro
compugraph
Posted: Monday, October 06, 2008 8:50:19 AM
Rank: Member

Joined: 10/1/2008
Posts: 18
Location: Germany
WOW! THX!

so simple. and it worked :-)

Ralf.


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.