ELMAH looks for virtual director binaries
I have a virtual directory just above the root of my web application that I use to store product images.
After installing ELMAH for registration, I realized that the images stopped working. This was due to ELMAH looking for its dll in the productimages / bin folder.
After I created the bin directory and placed the dll, the images now work
I don't like this as a long term solution. Any idea why this is being done and how to fix it?
The virtual directory inherits the configuration from your main application. To disable ELMAH in your virtual directory, you need to add a web.config file to it with the following content:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.webServer>
<modules>
<remove name="ErrorLog" />
<remove name="ErrorMail" />
<remove name="ErrorFilter" />
</modules>
<handlers>
<remove name="Elmah" />
</handlers>
</system.webServer>
</configuration>
(make sure the names match the names of your modules / handlers in the main web.config file)
You can use some url redrawing for direct productimages \ bin to \ bin in your solution, could you?
Kindness,
Dan