Answers for "mvc c# Maximum request length exceeded."

2

iis Maximum request length exceeded

Modify web.config adding these elements:
  <configuration>
    <system.web>
      <httpRuntime maxRequestLength="1048576" />
    </system.web>
  </configuration>

For IIS7 and above (included IIS Express), you also need to add:
 <system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="1073741824" />
      </requestFiltering>
   </security>
 </system.webServer>
 
Note:
maxRequestLength is measured in kilobytes
maxAllowedContentLength is measured in bytes
Posted by: Guest on March-16-2020

Code answers related to "mvc c# Maximum request length exceeded."

Browse Popular Code Answers by Language