|
<configuration>
|
|
<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>
|
|
</configSections>
|
|
<system.web>
|
|
<httpModules>
|
|
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" />
|
|
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" />
|
|
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah"/>
|
|
</httpModules>
|
|
</system.web>
|
|
<system.webServer>
|
|
<validation validateIntegratedModeConfiguration="false" />
|
|
<modules>
|
|
<add name="ErrorLog" type="Elmah.ErrorLogModule, Elmah" preCondition="managedHandler" />
|
|
<add name="ErrorMail" type="Elmah.ErrorMailModule, Elmah" preCondition="managedHandler" />
|
|
<add name="ErrorFilter" type="Elmah.ErrorFilterModule, Elmah" preCondition="managedHandler" />
|
|
</modules>
|
|
</system.webServer>
|
|
<elmah>
|
|
<!--
|
|
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
|
more information on remote access and securing ELMAH.
|
|
-->
|
|
<security allowRemoteAccess="false" />
|
|
</elmah>
|
|
<location path="elmah.axd" inheritInChildApplications="false">
|
|
<system.web>
|
|
<httpHandlers>
|
|
<add verb="POST,GET,HEAD"
|
|
path="elmah.axd"
|
|
type="Elmah.ErrorLogPageFactory, Elmah" />
|
|
</httpHandlers>
|
|
<!--
|
|
See http://code.google.com/p/elmah/wiki/SecuringErrorLogPages for
|
|
more information on using ASP.NET authorization securing ELMAH.
|
|
|
|
<authorization>
|
|
<allow roles="admin" />
|
|
<deny users="*" />
|
|
</authorization>
|
|
-->
|
|
</system.web>
|
|
<system.webServer>
|
|
<handlers>
|
|
<add name="ELMAH"
|
|
verb="POST,GET,HEAD"
|
|
path="elmah.axd"
|
|
type="Elmah.ErrorLogPageFactory, Elmah"
|
|
preCondition="integratedMode" />
|
|
</handlers>
|
|
</system.webServer>
|
|
</location>
|
|
</configuration>
|