ramsenthil18 / elmah

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

Could not load file or assembly 'System.Data.SQLite' or one of its dependencies #298

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Add Elmah to a project.

2. Run the project.

3. See the error.

What is the expected output? 

>>> There should be no error.

What do you see instead?

>>> Instead I see "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".

What version of the product are you using? 

>>> The version is "ELMAH-1.2-sp2-bin-x86".

On what operating system?

>>> This is Windows 7.

Please provide any additional information below.

>>> Please, please, please-- publish a version of this otherwise EXCELLENT with 
ZERO dependencies-- no other DLLs in the download. I have heard it said that 
Elmah CAN have zero dependencies BUT whenever I download it is has the SqlLite 
and Ng whatever and SqlCe (???) and other baggage with are specialized baggage 
and should be the exception. Anyway, it is BEAR to install. Visual Studio pulls 
in those references (SqlCe, SqlLite, etc) automatically, so even though Elmah 
may (in some way) not need them, the ARE in fact dependecies. Sorry to slam but 
this has been too long. The product is good and is a short step away from 
great. Thanks.

-- Mark Kamoski

Original issue reported on code.google.com by mkamo...@gmail.com on 25 Jun 2012 at 2:31

GoogleCodeExporter commented 8 years ago
You should be downloading ELMAH-1.2-sp2-bin-core[1] or the appropriate NuGet 
package (e.g. elmah[2] or elmah.corelibary[3]) if all you want is the base 
ELMAH assembly without any of the other dependencies. ELMAH does not mandate 
its external dependencies to be deployed or referenced unless you use an 
ErrorLog implementation that has the dependency (programmatically or via 
configuration). For example, only the use of SQLiteErrorLog requires 
System.Data.SQLite.

[1] 
http://code.google.com/p/elmah/downloads/detail?name=ELMAH-1.2-sp2-bin-core.zip
[2] http://nuget.org/packages/elmah
[3] http://nuget.org/packages/elmah.corelibrary

Original comment by azizatif on 26 Jun 2012 at 6:56