Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Source code problem in VS2008
LeadMagnet
#1 Posted : Thursday, 4 June 2009 12:42:57 AM(UTC)
Rank: Newbie

Joined: 4/06/2009(UTC)
Posts: 2
Location: Italy

Hey folks!

Downloaded the 4 June version and I'm trying to get it to run in VS2008. I get the following error

Code:

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.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.BadImageFormatException: 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.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Assembly Load Trace: The following information can be helpful to determine why the assembly 'System.Data.SQLite' could not be loaded.


=== Pre-bind state information ===
LOG: Appbase = file:///D:/ZZZ/GalleryServerPro/GalleryServerPro_V2_3_3440_source/Website/
LOG: Initial PrivatePath = D:\ZZZ\GalleryServerPro\GalleryServerPro_V2_3_3440_source\Website\bin
Calling assembly : (Unknown).
===
LOG: This bind starts in default load context.
LOG: Using application configuration file: D:\ZZZ\GalleryServerPro\GalleryServerPro_V2_3_3440_source\Website\web.config
LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/d685aa4a/f0265ecb/System.Data.SQLite.DLL.
LOG: Attempting download of new URL file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/Temporary ASP.NET Files/root/d685aa4a/f0265ecb/System.Data.SQLite/System.Data.SQLite.DLL.
LOG: Attempting download of new URL file:///D:/ZZZ/GalleryServerPro/GalleryServerPro_V2_3_3440_source/Website/bin/System.Data.SQLite.DLL.
ERR: Failed to complete setup of assembly (hr = 0x8007000b). Probing terminated.


I have the 32bit version on a 32 bit machine. Everything I've tried so far doesn't clear the error.

The site compiles fine, zero errors or warnings.

Completely lost.
LeadMagnet
#2 Posted : Thursday, 4 June 2009 1:00:24 AM(UTC)
Rank: Newbie

Joined: 4/06/2009(UTC)
Posts: 2
Location: Italy

OK...copied the SQLite.dll from the x86/bin zip file to the source bin file and it's working.

Weird! :)
Roger Martin
#3 Posted : Thursday, 4 June 2009 1:03:15 AM(UTC)
Roger Martin

Rank: Administration

Joined: 3/08/2007(UTC)
Posts: 3,300
Location: Fort Atkinson, WI

Yeah, I cover this issue in a How-To article.
Roger Martin
Creator and Lead Developer of Gallery Server Pro
Rss Feed  Atom Feed
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.