If the project uses .Net and was built with "Any CPU" setting, the .Net parts 
will end up being 64-bit when run on a 64-bit OS.  When .Net code calls into 
non-.Net DLLs the "bitness" has to match, and the SQLite DLL is almost 
certainly 32-bit.
 
At least some people at MS have decided that making AnyCPU the default was 
wrong; I agree.  I always change my projects to be x86 -- and that's 
appropriate until you write something that you think requires access to more 
than about 2gb of RAM.
 
If you can re-build the app as "x86" (on the original PC that you used for 
development) that probably will solve the problem.
 
J. Merrill
 
-----Original Message-----
Date: Fri, 5 Apr 2013 15:19:50 -0500From: Don V Nielsen 
<[https://apps.rackspace.com/versions/webmail/8.15.18-RC/popup.php?wsid=8777ef068db87b15a20a9e46b13314f4c1a2db7c]
 donvniel...@gmail.com>To: General Discussion of SQLite Database 
<[https://apps.rackspace.com/versions/webmail/8.15.18-RC/popup.php?wsid=8777ef068db87b15a20a9e46b13314f4c1a2db7c]
 sqlite-users@sqlite.org>Subject: [sqlite] Unhandled Exception: 
System.TypeInitializationExceptionMessage-ID: 
<[https://apps.rackspace.com/versions/webmail/8.15.18-RC/popup.php?wsid=8777ef068db87b15a20a9e46b13314f4c1a2db7c]
 
cakigfiiq7-m8+bhjpq1lrsgs-5cq1aqta9sgt8fvpejd8hy...@mail.gmail.com>Content-Type:
 text/plain; charset=ISO-8859-1Thanks for reading.  I am getting the following 
error moving a 32 bitapplication from Windows Server 2003 to WS2008.  This is a 
straight copyfrom one computer to another.  It runs fine on WS2003 and not so 
good onWS2008.  The application was compiled with VS2005.  I do not have 
adevelopment environment on the WS200
 8.  I have not cleared licensing forthat, yet.I'm not a developer savant.  I 
can code in C#, assemble, and run things.I've been googling this issue, but do 
not really understand what I amreading.  All of you rank pretty high on my 
rankings, so I thought I wouldask you all for help.Thanks for your time and 
consideration,dvnUnhandled Exception: System.TypeInitializationException: The 
typeinitializer for 'CDG.AddAName.AAN' threw an exception. 
--->System.BadImageFormatException: Could not load file or 
assembly'System.Data.SQLite, Version=1.0.82.0, 
Culture=neutral,PublicKeyToken=db937bc2d44ff139' or one of its dependencies. An 
attempt wasmade to load a program with an incorrect format.File name: 
'System.Data.SQLite, Version=1.0.82.0, 
Culture=neutral,PublicKeyToken=db937bc2d44ff139' at 
CDG.AddAName.AAN..cctor()WRN: Assembly binding logging is turned OFF.To enable 
assembly bind failure logging, set the registry 
value[HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.Note: There is som
 e performance penalty associated with assembly bindfailure logging.To turn 
this feature off, remove the registry 
value[HKLM\Software\Microsoft\Fusion!EnableLog]. --- End of inner exception 
stack trace ---
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to