chobo2
chobo2

Reputation: 85765

Elmah ignoring ErrorFilter

I am trying to have elmah ignore 404 errors but they keep showing up. I am using asp.net mvc 3.

I have

  <elmah>
    <errorLog type="Elmah.SqlErrorLog, Elmah" logPath="~/App_Data" connectionStringName="ConnectionString" applicationName="/" />
      <errorFilter>
          <test>
              <equal binding="HttpStatusCode" value="404" type="Int32" />
          </test>
      </errorFilter>
      <security allowRemoteAccess="0" />
  </elmah>

   <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>

Am I missing something? I used nuget to generate the web.config so I would think everything is in the web.config.

Upvotes: 2

Views: 2423

Answers (1)

bronsoja
bronsoja

Reputation: 809

Possibly an issue with module order like in this post?

ELMAH - Filtering 404 Errors

Upvotes: 5

Related Questions