qanuj / elmah

Automatically exported from code.google.com/p/elmah
0 stars 0 forks source link

Unable to Load 64bit version 1.1 possibly due to VSTADB being 32bit #142

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I downloaded the latest version (1.1 x64 Aug 17) I can can't build the 64
bit version due to bad image reported in Studio:

Build (web): Could not load file or assembly 'System.Data.SQLite,
Version=1.0.61.0, Culture=neutral, PublicKeyToken=db937bc2d44ff139' or one
of its dependencies. An attempt was made to load a program with an
incorrect format.

When I look at VSTADB.NET20.DLL using the 64bit version of Depends.exe it
reports that vstadb is x86 and not x64. 

Please advise 

Original issue reported on code.google.com by william....@gmail.com on 24 Nov 2009 at 8:03

GoogleCodeExporter commented 9 years ago
If you're using the SQLiteErrorLog, you do not need to deploy the 
VistaDB-related 
files. Does it resolve the problem if you delete them?

Also note that VistaDB is being dropped going forward. See issue #131 for 
details.

Original comment by azizatif on 24 Nov 2009 at 9:10

GoogleCodeExporter commented 9 years ago
I get the same problem and I have no reference to either SQLite or the VistaDB 
dlls
and I'm only configured to use the SQLErrorLog.

Original comment by drew.fre...@gmail.com on 9 Mar 2010 at 12:31

GoogleCodeExporter commented 9 years ago
Is there a solution to this problem? I just grabbed Elmah off NuGet, and 
GoogleCode, both throw the same exception even tho i'm configured for SQL 
Server, not SQLite. 

The exception is thrown with and without a reference to the sqlite assembly...

Original comment by phillip....@gmail.com on 3 Jan 2011 at 7:46

GoogleCodeExporter commented 9 years ago
Simply delete the SQLite and VistaDB DLLs as you don't need them!

Original comment by jamesdriscoll71 on 3 Jan 2011 at 11:24

GoogleCodeExporter commented 9 years ago
I'm assuming this problem is occuring during development with Visual Studio and 
not in a deployed IIS environment. Is that correct? If yes, could you please 
provide more details about when this error is thrown? For example, is it during 
a build? Is it when run the web site using the built-in Development Server?

Original comment by azizatif on 3 Jan 2011 at 5:43

GoogleCodeExporter commented 9 years ago

Original comment by azizatif on 3 Jan 2011 at 9:27

GoogleCodeExporter commented 9 years ago
I cannot get it to work in Visual Studio. What is the fix?

Original comment by balderd...@gmail.com on 20 Jan 2011 at 5:37

GoogleCodeExporter commented 9 years ago
I have the same problem.  I build on a 32-bit machine and deploy to a 64-bit 
machine.  The SQLite DLL isn't required on my 32-bit machine, but is on the 
64-bit.  FYI, I do a manual deploy to a bank of IIS servers.

I don't care about the dependency on SQLite, but having to manually add it to 
the deploy is a pain.  

Seems the ideal solution is to use a non-platform dependent version of SQLite:
http://code.google.com/p/csharp-sqlite/

Original comment by masil...@gmail.com on 5 Dec 2011 at 4:49

GoogleCodeExporter commented 9 years ago
Can you be more specific about "The SQLite DLL [...] is on the 64-bit" please?
What messages are you seeing?

Also, have you tried adding ELMAH to your project using the NuGet packages?
Does this make any difference??

Thanks,

James

Original comment by jamesdriscoll71 on 5 Dec 2011 at 5:35

GoogleCodeExporter commented 9 years ago
I am running version ELMAH-1.2-sp1-bin-x64 and experiencing the same issue on 
my local 64bit development machine.  The error is occurring during the 
build/rebuild of my web project.  Even after manually deleting the references 
to System.Data.SQLite since I am not using it when rebuilding Visual Studio 
re-adds the references ( I guess the other DLLs require it to part of the 
build).  I have attached a text file that contains the exception details, stack 
trace, etc.

Please assist.

Original comment by dansmith...@gmail.com on 24 Jan 2012 at 4:59

Attachments:

GoogleCodeExporter commented 9 years ago
Dear Elmah Developers -- Please help. This is still an issue for me too-- 
"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". 
My setup and result is pretty much exactly as described above in "Comment 10 by 
dansmith...@gmail.com, Jan 24, 2012". Is there a workaround? Please advise. 
Thanks. -- Mark Kamoski

Original comment by mkamo...@gmail.com on 27 Jul 2012 at 8:13

GoogleCodeExporter commented 9 years ago
Hi there!

If you don't need SQLite, simply delete the SQLite DLL.
If you need SQLite, your best bet is to use the NuGet packages.

Cheers,

James 

Original comment by jamesdriscoll71 on 28 Jul 2012 at 7:22

GoogleCodeExporter commented 9 years ago
This issue has been migrated to:
https://github.com/elmah/Elmah/issues/142
The conversation continues there.
DO NOT post any further comments to the issue tracker on Google Code as it is 
shutting down.
You can also just subscribe to the issue on GitHub to receive notifications of 
any further development.

Original comment by azizatif on 25 Aug 2015 at 8:18