Questions tagged [maxrequestlength]

35 questions
137
votes
2 answers

Which gets priority, maxRequestLength or maxAllowedContentLength?

While changing the maximum allowed file size for upload I stumbled on those two settings. In the sytem.web you have the http runtime node with maxRequestLength. In the system.webServer you have the requestLimits with maxAllowedContentLength. Now…
Floris Devriendt
  • 2,044
  • 4
  • 24
  • 34
74
votes
5 answers

Maximum value of maxRequestLength?

If we are using IIS 7 and .Net Framework 4, what will be the maximum value of maxRequestLength?
Erkan BALABAN
  • 1,347
  • 1
  • 13
  • 20
17
votes
1 answer

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…
Alex42
  • 562
  • 1
  • 5
  • 12
12
votes
6 answers

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…
st78
  • 8,028
  • 11
  • 49
  • 68
10
votes
1 answer

max upload length

Things I already know about upload size limits in MVC: For IIS7 you have to set both maxAllowedContentLength and maxRequestLength for a max upload size I know 1 property is in bytes and the other in kilobytes You can use the location property to…
PcPulsar
  • 444
  • 6
  • 18
9
votes
1 answer

ERR_CONNECTION_RESET: The connection was reset when uploading a large file

I had a mysterious error where a file greater than 4MB generated a random error. Later on I realized it was caused due to the http maxrequestlength . An image cannot be greater than 4MB when uploaded by default. I know that this can change from the…
test
  • 2,538
  • 4
  • 35
  • 52
5
votes
1 answer

azure web app maximum request length exceeded

We hosted Dot Net Web Application in Azure Web App. There is File Upload and Download provisions available. When we try to upload and download small size files (in KBs), there is no issue. But when the file size is more than MB then Maximum Request…
Manigandan K
  • 63
  • 1
  • 1
  • 6
5
votes
0 answers

How to increase maxRequestLength per Controller in WebApi

I found the same question here since 2012, but I want to launch again the question. Is it possible to increase the maxRequestLength per service or controller instead of changing the Web.Config?
Maximus Decimus
  • 4,901
  • 22
  • 67
  • 95
5
votes
1 answer

Maximum request length exceeded despite config values being set

I am having some issues when uploaded files of greater than 4MB to blob storage using an MVC application that I am working on. I have added the necessary code in the web.config as shown below: Within system.web
Jay
  • 3,012
  • 14
  • 48
  • 99
4
votes
3 answers

Why does a request that exceeds a specified maxRequestLength respond with a (seemingly) irrelevant error?

I've specified a maxRequestLength in my web.config (MVC) like so: When having a look in the network tab while testing for…
user1017882
3
votes
1 answer

Maximum upload file size exceeded is ignored

I'm attempting to upload documents to my server using the technique describe on this blog All has gone well, and I am able to upload documents just fine. The only snag is when I attempt to upload a file which exceeds the upload limit which is…
ETFairfax
  • 3,794
  • 8
  • 40
  • 58
2
votes
0 answers

IIS 10: ASP.NET Web.config maxRequestLength not enforced

I am developing an ASP.NET web forms application on Windows 10 Pro x64. I believe that its running IIS 10 because my Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\VersionString = Version 10. I checked my Windows features and Internet…
CAK2
  • 1,892
  • 1
  • 15
  • 17
2
votes
1 answer

Request Length ERR_CONNECTION_RESET in MVC 4 Application on IIS 7.5

I am having an issue with my application using MVC 4 and IIS 7.5 getting a net::ERR_CONNECTION_RESET errror. The page request size is 4.9MB. All of the content loads but the request says that is has not finished yet, and none of my javascript is…
BMW1
  • 43
  • 1
  • 7
2
votes
1 answer

Max parameter size for NSData / setHTTPBody?

My iPad app sends a list of files as a string parameter, fileList to a web method like this: NSString *post = [NSString stringWithFormat:@"sessionID=%@&fileList=%@&dateTime=%@&userID=%@", sessionID, fileList, timeOpened, userID]; NSData…
Robert
  • 5,278
  • 43
  • 65
  • 115
1
vote
1 answer

Maximum Request Length Exceeded Not Redirect on Error Page

I followed these links: Catching "Maximum request length exceeded" and ASP.NET - how to show a error page when uploading big file (Maximum request length exceeded)? to display error page to handle uploading files exceeding the maxRequestLength in…
KaeL
  • 3,639
  • 2
  • 28
  • 56
1
2 3