Help setting up Elmah in ASP.NET

I am trying to configure ELMAH to register errors for our application. I have successfully added the modules and I have no problem loading the ErrorLog page (elmah.axd). However, Elmah does not register any test exceptions that I generate.

My web.config looks like this:

<configSections>
    <!-- Other stuff -->
    <sectionGroup name="elmah">
        <section name="security" requirePermission="false" type="Elmah.SecuritySectionHandler, Elmah"/>
        <section name="errorLog" requirePermission="false" type="Elmah.ErrorLogSectionHandler, Elmah"/>
        <section name="errorMail" requirePermission="false" type="Elmah.ErrorMailSectionHandler, Elmah"/>
    </sectionGroup>
</configSections>

<elmah>
    <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data" /> 
</elmah> 

<httpHandlers> 
    <!-- Other stuff -->
    <add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>
</httpHandlers>

<httpModules>
    <!-- Other stuff -->
    <add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah"/>
    <add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>
    <add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
</httpModules>

Clicking on the check exclusions page http://localhost/elmah.axd/testcreates a yellow < DotNetSlackers screen . I see nothing wrong. Is there something I'm missing? I also tried to generate errors using Signaling , but this does not work either.

I run this against DotNetNuke, and therefore, when I now think that the problem lies.

+5
3

, , DotNetNuke.
1. dnn Portal
2. Host > Host Settings.
2. " - ".
3. .
4. "".
DotNetNuke.

+8

DNN - ?

ELMAH - Castle MonoRail ELMAH

FYI - .

+1

DNN handles all exceptions, so maybe the problem you see. I believe that it handles the Error event at the application level, writing everything to the database. I don’t know how to do it, but I never tried to do it.

+1
source

All Articles