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!
You can set up an event handler in your global.asax to avoid ugly configuration regex settings:
See Error Filtering.
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.