Original: "Problem" vs IIS breaking File upload limit most full version
Today when testing the upload files found IIS and configuration there is an upload file size limit (IIS default size 30M, Max Run as 2g:2147483647), Baidu Some of the information published to IIS, but not in the VS debugging. So I keep trying to find out the problem point. Not that the internet is wrong, but there are some cases where some steps have been overlooked. I summed up my steps for this time.
The first step:
To configure a Web node in the. config node:
<system.web> <compilation debug="true"targetframework="4.5"/> <!--is mainly maxRequestLength properties--"4.5"Maxrequestlength="2147483647"executiontimeout="6000"/> <pages controlrenderingcompatibilityversion="4.5"Clientidmode="autoid"/> </system.web>
Step Two:
The Web. config node is still configured, but the Webserver node is configured. Online Some people say this is IIS7 above only configure.
<system.webServer> <security> <requestFiltering> <!-- Mostly maxAllowedContentLength Properties-- <requestlimits maxallowedcontentlength="2147483647 "></requestLimits> </requestFiltering> </security> </ System.webserver>
Note: After the above two steps in the configuration, only the upload 4M limit is broken in vs. Please note that. I just finished configuring these two steps, upload more than 4M so that the more than 30 is still not. Some of the documents on the Web are mostly said here.
Step Three:
Configure IIS restrictions, open IIS, and locate the configuration Editor.
Click Enter first select node at node: System.web/httpruntime, then find the size value on the maxRequestLength property configuration below the list.
Fourth Step:
Instead of exiting the third step page, continue to switch nodes to: system.webserver/security/requestfiltering, find the RequestLimits child node, Open the Configure maxAllowedContentLength property size value.
You can upload files after you complete the restart.
"Problem" vs IIS breaking File upload limit most full version