2

I am currently working on an ASP.net C# web app. I am using the AjaxControlToolkit ASyncFileUpload, however, when I upload a certain file I get the error message Maximum Request Length Exceeded. Is there a way that I can increase the size limit for file uploads.

Thanks for any help you can provide.

Boardy
  • 35,417
  • 104
  • 256
  • 447
  • possible duplicate of [AsyncFileUpload file size limit](http://stackoverflow.com/questions/3597943/asyncfileupload-file-size-limit) Come on @Boardy, did you search at all? :) – bzlm Jun 20 '11 at 17:04

2 Answers2

4

The maximum request length is set in web.config, specifically in the httpRuntime/maxRequestLength value.

<!-- Maximum 16 MB -->
<httpRuntime maxRequestLength="16384" />

Do be aware that there might also be a limitation in IIS depending on your version.

driis
  • 161,458
  • 45
  • 265
  • 341
-1

Max request length is defined in web.config in KB as 4096 (default to 4MB), you can change the following in web.config

   <system.web>

  <httpRuntime maxRequestLength="51200"

  enable = "True"

  executionTimeout="45"/>

  </system.web>

 </configuration>
Naveed Ahmad
  • 445
  • 3
  • 6