Welcome to Snap
 
 
Wednesday, January 07, 2009
Register  Login
 
 
  Forum  General Chit-Ch...  Problems?  Problems on 64 bit
Previous Previous
 
Next Next
New Post 11/4/2008 10:54 AM
Unresolved
  MisterE
1 posts
No Ranking


Problems on 64 bit 
Snap crashes on a 64 bit Windows XP system with a "System.BadImage[form]atException"
The details are: "Could not load file or assembly 'System.Data.SQLite, Version=1.0.27.1,Culture=neutral,PublicKeyToken=db937bc2d44ff139' or one of its dependencies.

I have seen this with .NET apps before, and there is a flag that needs to be changed for compile that flags it as a 32 bit app. This can also be changed after compilation by doing the following:

#########################################################################

C:\Program Files (x86)\Microsoft.NET\SDK\v2.0\Bin>corflags "c:\Program Files (x86)\Titanium Soft\Snap\Snap.exe"
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.

Version : v2.0.50727
CLR Header: 2.5
PE : PE32
CorFlags : 9
ILONLY : 1
32BIT : 0
Signed : 1

C:\Program Files (x86)\Microsoft.NET\SDK\v2.0\Bin>corflags "c:\Program Files (x86)\Titanium Soft\Snap\Snap.exe" /Force /32bit+
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.

corflags : warning CF011 : The specified file is strong name signed. Using /Force will invalidate the signature of this image and will requ
ire the assembly to be resigned.

C:\Program Files (x86)\Microsoft.NET\SDK\v2.0\Bin>corflags "c:\Program Files (x86)\Titanium Soft\Snap\Snap.exe"
Microsoft (R) .NET Framework CorFlags Conversion Tool. Version 2.0.50727.42
Copyright (c) Microsoft Corporation. All rights reserved.

Version : v2.0.50727
CLR Header: 2.5
PE : PE32
CorFlags : 11
ILONLY : 1
32BIT : 1
Signed : 1


##########################################################################

Unfortunately, as stated above, it invalidates the signature to do it after compile.

Has anyone been able to get this to run on a 64 bit OS?
 
Previous Previous
 
Next Next
  Forum  General Chit-Ch...  Problems?  Problems on 64 bit