How can I avoid ugly 404.13 error messages when a user tries to upload a file to the server that exceeds the maximum size?

If a user tries to upload a file that exceeds the maximum allowed, they are greeted with an ugly server error  

HTTP Error 404.13 - Not Found
The request filtering module is configured to deny a request that exceeds the request content length

Is it possible to give them a friendlier message than this?

I know IIS has the facility to assign custom error pages, but this is for primary error codes - for example a 404 error, if you try to enter a custom page for a 404.13 error it says '404.13 is an invalid status code. Status codes must be numbers in the form of 400 or 500. Status codes must be between 100 and 999"

purplesoupAsked:
Who is Participating?
 
Éric MoreauSenior .Net ConsultantCommented:
you can also validate the size before uploading if you use http://www.brettle.com/neatupload
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.