How to catch ConfigurationErrorsException for violating maxRequestLength ?

Posted by Narsil on Stack Overflow See other posts from Stack Overflow or by Narsil
Published on 2010-05-03T06:30:33Z Indexed on 2010/05/03 6:38 UTC
Read the original article Hit count: 224

I am limiting file size users can upload to the site from Web.config. As explained here, it should throw a ConfigurationErrorsException if size is not accepted. I tried to catch it from the action method or controller for upload requests but no luck. Connection is resetted and I can't get it to show an error page.

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about error-handling