Tuesday, December 9, 2014

iis - Post size exceeded the allowed limits

After hosting our appliction on IIS we started noticing a lot of warnings about the post size in the event viewer.


Once we tweaked the settings for the request length most of the warnings vanished.Below are the screenshots of the warnings,settings that was tweaked on IIS to handle post size from the client and the difference in the files received after the change in settings.










The default post size an application hosted on IIS can handle is 4 MB.After changing this setting to accept post size up to 20 MB in the web.config file for the application, we started receiving posts that were rejected before.


<system.web>
        <httpRuntime maxRequestLength="20480" />
</system.web>




















1 comment:

Dan Randolph said...

Thanks. I had the same problem start happening after years with no errors with sizes up to 10 MB.