Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 707199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T04:15:03+00:00 2026-05-14T04:15:03+00:00

Is there a way to filter exceptions in elma using the exception message? Examples:

  • 0

Is there a way to filter exceptions in elma using the exception message?

Examples:
“System.Web.HttpException: Request timed out.” I don’t want to filter out all HttpException, but only the timed-out requests.
“System.Web.HttpException: Maximum request length exceeded.”

What I don’t want to do is write own code for that. So is it possible to do this with the buildin-web.config configuration?

Thank you!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T04:15:04+00:00Added an answer on May 14, 2026 at 4:15 am

    Yes you can. Just use a regular expression to interrogate the message. See the example below for details on how to compare the exception message.

    <errorFilter>
      <test>
        <!-- http://groups.google.com/group/elmah/t/cbe82cee76cc6321 -->
        <and>
          <is-type binding='Exception'
                   type='System.Web.HttpException, System.Web, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' />
          <regex binding='Exception.Message'
                 pattern='invalid\s+viewstate'
                 caseSensitive='false' />
          <regex binding='Context.Request.UserAgent'
                 pattern='Trident/4(\.[0-9])*'
                 caseSensitive='false' />
        </and>
      </test>
    </errorFilter>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there a way to control groovy's MarkupBuilder's output and filter out the newline
Is there a better way to handle exceptions that occur inside an Action Filter
Is there a way to filter out certain processes in Fiddler? Its very noisy
Is there a way to filter or follow a TCP / SSL stream based
Is there a way to block/filter the incoming calls in iphone 4.0+ I've found
Is there a way construct a predicate to filter by class type? I currently
Is there a way to use data from the current context to filter nodes
Is there a way to tell a JTable's row filter that it should update
Is there a way to run the changed files through a filter before doing
is there a way to do the following in one Django query? MyModel.filter(attr=a).values('attr','fields','of','interest').annotate(count=Count('id')) MyModel.filter(attr=b).values('attr','fields','of','interest').annotate(count=Count('id'))

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.