dhont / elmah

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

ReSharper Reporting Elmah Run-Time Error in Properly Working Web Site #193

Closed GoogleCodeExporter closed 9 years ago

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

1. Open Visual Studio 2008 solution that is using Elmah. Mine is MVC 2.0 Web 
site. Visual Studio should have ReSharper 5.0 installed.

2. Observe page declaration in View. In all Views, ReSharper reports that there 
is a runtime error. "Could not load file or assembly Elmah. An attempt was made 
to load a program with an incorrect format."

What is the expected output? What do you see instead?

Solution is working properly, and there isn't any indication of problems with 
Elmah. Could this be a problem with the ReSharper interface in Elmah?

What version of the product are you using? On what operating system?

I am using Elmah 1.1 compiled from src in 64 bit mode, running on Windows 7 x64 
and IIS 7, using integrated pipeline modules and handlers.

Please provide any additional information below.

Copies of code are running in two separate branches, with same errors being 
displayed in both paths.

Original issue reported on code.google.com by fchat...@comcast.net on 30 Nov 2010 at 4:06

GoogleCodeExporter commented 9 years ago
This is not defect. Error was found to be related to build platform. Staging 
platform is x64, so I built Elmah in 64 bit, but development platform is 32 
bit. Elmah is apparently very sensitive to this. I re-built Elmah for AnyCPU 
platform, and there are no more problems. AnyCPU build is entirely acceptable 
for the Release build, as the optimised code and the JIT compiler will adjust 
for which platform Elmah is running on.

Original comment by fchat...@comcast.net on 1 Dec 2010 at 4:34

GoogleCodeExporter commented 9 years ago
ELMAH by itself is bit-neutral. The only piece that's sensitive to bitness is 
SQLite.

Original comment by azizatif on 1 Dec 2010 at 9:13