help.axcms.netAxinom Logo
Save Save Chapter Send Feedback

KB10006: Maximum request length exceeded

Exception thrown if uploading big files.


This exception is thrown if uploading a document into OR publishing a document:

Exception Information
System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Web.HttpException: Maximum request length exceeded.

In case of publishing you might not see the exception immediately but only get a error message and have to look for exception first.


The file being uploaded or published exceeds the maximum request size set in web.config for the web application.


In the web.config find the element httpRuntime and increase the value for the attribute maxRequestLength (or add this attribute if not exists). Default value for maxRequestLength is 4096 (= 4 MB).

<httpRuntime maxRequestLength="40000"/>

The relevant web.config file is the one for:

  • Management System, if the problem is about uploading file
  • Publish Service, if the problem is about publishing a file
  • WebDAV, if you are using WebDAV for uploading
  • Live System, if you implemented your custom upload functionality in LS or for example use the upload control in contact module

Don't change the other attributes of the httpRuntime element (although executionTimeout parameter is the next possible reason of a failure - see below).

APPLIES TO versions: All versions