ELMAH Configuration

Published by on
Tags:

I am noting this here so I can quickly copy and paste the Elmah config.

Add to configSections:

<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"/>
      <section name="errorFilter" requirePermission="false" type="Elmah.ErrorFilterSectionHandler, Elmah"/>
    </sectionGroup>

The ELMAH section:


<elmah>
    <errorLog type="Elmah.XmlFileErrorLog, Elmah" logPath="~/App_Data/errorLogs" />
    <security allowRemoteAccess="yes" />
</elmah>

The HTTPModule:

<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah"/>

The HttpHandler

<add verb="POST,GET,HEAD" path="elmah.axd" type="Elmah.ErrorLogPageFactory, Elmah"/>

 

All blogs tagged with ' asp.net'

Projects

Have you read?

BlogEngine to Twitter



Blogs by date