web requests a "Maximum request length exceeded" [Note: Restart IIS]

 Excerpt from: http: //www.cnblogs.com/loalongblogs/archive/2012/10/16/2726372.html

reported web request "request exceeds the maximum length."

 
Cause of error: asp.net default maximum upload file size is 4M, run timeout is 90S.
 
solution:
 
1. Modify the web.config file can change this default value   
  
<configuration>   
   <system.web>  
         <httpRuntime maxRequestLength="1048576" executionTimeout="3600" />
   </system.web>  
<configuration> 
 
2. Another approach is to modify the .NET FrameWork:
 
(1) Modify C: machine.config file under /WINDOWS/Microsoft.NET/Framework/v1.1.4322/CONFIG directory.
 
(2) Find "<httpruntime" change in value of the ideal value maxRequestLength This line, like you want to 8M, would enter 8192.   
In this way, any web project you can upload a maximum 8M files.
3. By the way IIS limits the upload file size modification method:
 
(1) First, go to the IIS service process off, that inetinfo.exe process off.
 
(2) found in the system directory: windows / system32 / inesrv / metabase.xml "file, find a text editor to open and look AspMaxRequestEntityAllowed =" 204800 "This one, this is the default size of the iis upload files by default 204800Byte, that is 200KB, change it to the size you want it.
 
 
Category:  ASP.NET

Reproduced in: https: //www.cnblogs.com/Kummy/p/3707165.html

Guess you like

Origin blog.csdn.net/weixin_34040079/article/details/93230606