Created
October 4, 2021 08:46
-
-
Save nikanos/809f12d4a6c0fd0282afedc434da429f to your computer and use it in GitHub Desktop.
.NET Configuration file - IIS Request size & time limits
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
maxRequestLength: | |
https://docs.microsoft.com/en-us/dotnet/api/system.web.configuration.httpruntimesection.maxrequestlength?view=netframework-4.8 | |
The maximum request size in kilobytes. The default size is 4096 KB (4 MB). | |
executionTimeout: | |
https://docs.microsoft.com/en-us/dotnet/api/system.web.configuration.httpruntimesection.executiontimeout?view=netframework-4.8 | |
The ExecutionTimeout property indicates the maximum number of seconds a request is allowed to execute before being automatically shut down by ASP.NET. The default is 110 seconds. This time-out applies only if the debug attribute in the <compilation> element is set to false. | |
maxAllowedContentLength: | |
https://docs.microsoft.com/en-us/iis/configuration/system.webserver/security/requestfiltering/requestlimits/ | |
Specifies the maximum length of content in a request, in bytes. The default value is 30000000, which is approximately 28.6MB. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<configuration> | |
<configSections> | |
<!-- config sections --> | |
</configSections> | |
<system.web> | |
<!-- 20 MB max. request, 1800s (30min) timeout --> | |
<httpRuntime maxRequestLength="20480" executionTimeout="1800" /> | |
</system.web> | |
</configuration> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment