Questions tagged [maxrequestlength]

35 questions
1
vote
3 answers

How can I remove an uploaded file from an ASP.NET page request and handle the request without compromising its integrity?

Suppose someone: visits and ASPX page (http get request). sets a "too large" file in a file uploader and clicks the upload button (http post request). I don't care to have a custom error page served; that's dumb, and disrupts the application. I…
Triynko
  • 18,766
  • 21
  • 107
  • 173
1
vote
0 answers

Request content length of asp:FileUpload control

I have an aspx page. The page contains asp:FileUpload control. When I try to save the browsed file path to xml file locally, it works fine. But when I try to browse it from IIS [8.5] - I get this error: HTTP Error 404.13 - Not Found The request…
Tali B.
  • 125
  • 1
  • 11
1
vote
0 answers

ASP.NET Application_Error Redirection

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(); …
Klinkerhofen
  • 147
  • 1
  • 10
0
votes
1 answer

Why maxRequestLength set is invalid in MVC 3?

In the web.config, I've set maxRequestLength to 102400. When I upload a 65M file, it redirects me to a 404 error page, but it is normal in asp.net. This is the current setting:
user980447
  • 133
  • 1
  • 1
  • 5
0
votes
1 answer

IIS 8.5 php Version 7.3.11 64 UPLOAD BIGGER THAN 2GB?

I'm trying to upload a file of 4 GB or more file (sum 5GB) files - 500 Internal server error!!! Any idea?
0
votes
0 answers

Maximum request length exceeded, IIS 8.5

I am calling a web request from my Delphi code to upload a file (size: 3 to 6 MB) but I am getting the error: Maximum request length exceeded. How do I fix this? Update: I have updated the web.config file with the below code but I am still getting…
S. B.
  • 186
  • 1
  • 12
0
votes
1 answer

Kept being directed to HTTP Error 404.13 page despite configuration set in Web.Config

Error faced: HTTP Error 404.13 - Not Found/ The request filtering module is configured to deny a request that exceeds the request content length Edit: Decided to rephrase and tidy my question. I kept encountering this error whenever I am submitting…
0
votes
1 answer

Azure Webapp Request returning 502 after 4 min

I know this has been asked before, but I tried all known solutions and still no luck. I have a request that returns roughly 26MB of JSON. It is returning a 502 on my azure web app. I have set maxRequestLength and maxAllowedContentLength to their…
Josh
  • 1,648
  • 8
  • 27
  • 58
0
votes
1 answer

ASP.NET MVC : maximum request length exceeded despite maxRequestLength maxAllowedContentLength set in web.config

I've been trying to upload a file larger than 4mb to an ASP.NET MVC web application (for a long time) and I've looked at so many stack exchange articles so I am aware this is a duplicate, but I've tried everything I'm not making any progress. I'm…
0
votes
1 answer

System.Net.HttpWebRequest.GetResponse() error "You must write ContentLength bytes to the request stream before calling [Begin]GetResponse."

I have a method that uploads files to our server. I'm seeing the error in the title when trying to upload a large file. I've tried increasing maxRequestLength from 35480 KB in web.config but I'm still seeing the error.
0
votes
1 answer

C# - Server side WebMethod returns large byte[] as null to client

I have a server-side ASP.NET WebMethod (System.Web.Services.WebMethod). It is called from the client via JavaScript. It uses System.Net.WebClient to download an SSRS report via its URL, converts the report to a byte array and passes it back to the…
bryc3monk3y
  • 424
  • 8
  • 12
0
votes
1 answer

Reaching MaxRequestWorkers limits caused by bot traffic ERR_CONNECTION_TIMED_OUT

I had an ERR_CONNECTION_TIMED_OUT and the website went down for a few minutes several times in a time-frame of approximately 1.5 hours, and this is something I found in the logs: [Mon May 21 11:21:51.236380 2018] [mpm_worker:error] [pid 3206:tid…
Jaime Montoya
  • 6,915
  • 14
  • 67
  • 103
0
votes
2 answers

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…
Carter
  • 2,850
  • 9
  • 44
  • 57
0
votes
1 answer

Get maxRequestLength value from specific location path in config

I have several different maxRequestLengths set for different location paths. How do I get the value of the specific location path that I am looking for? Here is what is in config:
tania_s
  • 207
  • 1
  • 5
  • 13
0
votes
1 answer

Maximum request length exceeded File upload asp.net

I am getting error for Maximum request length exceeded. I have set following line in my web.config file. still I am getting the same error.
WebAshlar
  • 23
  • 6