|
1 | 1 | <?xml version="1.0" encoding="utf-8"?> |
2 | 2 | <configuration> |
3 | 3 | <location path="." inheritInChildApplications="false"> |
| 4 | + <!-- This settings must be used along with requestLimits settings below --> |
4 | 5 | <system.web> |
5 | 6 | <httpRuntime maxRequestLength="1048576" executionTimeout="900" maxUrlLength="4096" maxQueryStringLength="2048" /> |
6 | 7 | </system.web> |
|
9 | 10 | <modules runAllManagedModulesForAllRequests="false"> |
10 | 11 | <remove name="WebDAVModule" /> |
11 | 12 | </modules> |
12 | | - |
| 13 | + |
13 | 14 | <handlers> |
14 | 15 | <clear/> |
15 | 16 | <add name="aspNetCore" path="*" verb="*" modules="AspNetCoreModule" resourceType="Unspecified" /> |
|
27 | 28 | <security> |
28 | 29 | <requestFiltering> |
29 | 30 | <!-- maxAllowedContentLength - Specifies the maximum length of content in a request, in bytes. The default value is 30000000 (~28.6 MB) and has |
30 | | - been reduced to 1048576 (1 MB). This setting is for IIS while the httpRuntime maxRequestLength setting is |
31 | | - for ASP.NET, you need to set both to the same value or the smaller number wins (See http://stackoverflow.com/questions/6327452/which-gets-priority-maxrequestlength-or-maxallowedcontentlength). --> |
| 31 | + been reduced to 1048576 (1 MB). This setting is for IIS while the httpRuntime.maxRequestLength is |
| 32 | + for ASP.NET, so you need to set both to the same value otherwise the smaller number wins (See http://stackoverflow.com/questions/6327452/which-gets-priority-maxrequestlength-or-maxallowedcontentlength). --> |
32 | 33 | <!-- maxQueryString - Specifies the maximum length of the query string, in bytes. The default value is 2048. This setting is for IIS while the |
33 | | - httpRuntime maxQueryStringLength setting is for ASP.NET, you need to set both to the same value. --> |
| 34 | + httpRuntime.maxQueryStringLength is for ASP.NET, so you need to set up both to the same value. --> |
34 | 35 | <!-- maxUrl - Specifies maximum length of the URL, in bytes. The default value is 4096. This setting is for IIS while the |
35 | | - httpRuntime maxUrlLength setting is for ASP.NET, you need to set both to the same value. --> |
| 36 | + httpRuntime.maxUrlLength is for ASP.NET, so you need to set both to the same value. --> |
36 | 37 | <requestLimits maxAllowedContentLength="1048576" maxQueryString="2048" maxUrl="4096" /> |
37 | 38 | </requestFiltering> |
38 | 39 | </security> |
|
0 commit comments