I have a web application and users started uploading large files. To avoid errors i did this:
1- Set the httpRuntime maxRequestLength.
2- Edited the Application_Error function of Global.asax to this:
Server.ClearError();
Response.Redirect(Request.RawUrl, false);
return;
It all works well when i have fiddler on, and the user gets redirected to the same page. But if fiddler is off the browser shows this:
Error 101 (net::ERR_CONNECTION_RESET): The connection was reset.
What am i doing wrong?