I created an ASP.NET application that use FileUpload control.
I fixed maximun dimension of upload to 20Mb and everything work well.
If the user try to upload a file more than 20Mb correctly appears a WEB Page that show the HTTP Error 401.13.
I would like capture the error and redirect the browser to my customized web page.
I have tried to capture the error in page_error event, in global.asax Application_error, forcing the redirect using Response.Redirect() or Server.Execute() but they seem to be ignored and the standar Error page continues to appear.
Someone may suggest me how to manage the correct error catch and redirect?