maxrequestlength

ASP.NET - how to show a error page when uploading big file (Maximum request length exceeded)?

Application able to record error in OnError, but we are not able to do any redirect or so to show something meaningfull to user. Any ideas? I know that we can set maxRequestLength in web.config, but anyway user can exceed this limit and some normal error need to be displayed. ...

file size upload limitation in ASP.NET MVC: more than 1 maxRequestLength setting in web.config(s)

I'd like to have more than 1 setting for maxRequestLength - file size upload limitation (e.g. one for File/New, other for Picture/New). All of my Actions take additional parameters (e.g. /File/New?folderId=234). Single setting works as expected: <httpRuntime executionTimeout="60" maxRequestLength="1024" /> I tried to have 2 settings ...

ASP.NET FileUpload failure

Trying to upload a large file (20MB), I set the maxRequestLength to a high enough level (and the expiration time too) in the httpRuntime entry of web.config. The Event Log stopped reporting that the post size exceeds allowed limits, but I still get the same behavior in the browser (IE or FF): "The connection to the server was reset while...

How can you know that current request exceeds maxRequestLength in ASP.Net?

I'm developing a small web application in ASP.Net (framework version 3.5) using VS2008 and C# 3.0. There's a file upload, and I want to make sure that the whole request doesn't exceed 5 MB. I configured the web.config file and maxRequestLength is set properly. I'm overriding the page's OnError method. However, while investigating the ...

AsyncFileUpload: How do I hide the max request length exceeded alert error?

If I upload a file that is larger than the configs max request length I get a "Server Response Error: Unknown Server Error" alert popup. It asks if I want to see the response page and if I click "OK" an application error window pops up saying "Maximum request length exceeded." I found this already... http://stackoverflow.com/questions/...