Maximum request length exceeded in asp.net mvc.

Maximum request length exceeded in asp.net mvc

Default upload file size if 4MB. To increase it, please use this below section in your web.config

<configuration>
    <system.web>
        <httpRuntime maxRequestLength="1049576" />
    </system.web>
</configuration>
 <system.webServer>
   <security>
      <requestFiltering>
         <requestLimits maxAllowedContentLength="2073771824" />
      </requestFiltering>
   </security>
 </system.webServer>

2020-01-22