maxRequestLength value RRS feed

  • Question

  • Hi,

    I want to be able to import a large Excel file.

    I found out that I can change the value <httpRuntime maxRequestLength="8192"/> in web.config.

    Did anyone try it?

    Does it work?

    If yes, how much can be the maximum value?

    Thank you

    Thursday, March 15, 2012 7:56 AM

All replies

  • Hi

    I found following description on one of the post:

    By default, the maximum size of a file to be uploaded to a server using the ASP.NET FileUpload control is 4MB. You cannot upload anything that is larger than this limit.

    To change this size limit, you have to make some changes in the application's web.config:
      <httpRuntime  maxRequestLength="102400" executionTimeout="360"/>

    maxRequestLength - Attribute limits the file upload size for ASP.NET application. This limit can be used to prevent denial of service attacks (DOS) caused by users posting large files to the server. The size specified is in kilobytes. As mentioned earlier, the default is "4096" (4 MB). Max value is "1048576" (1 GB) for .NET Framework 1.0/1.1 and "2097151" (2 GB) for .NET Framework 2.0.


    Also, this post seems to have some more information which can be helpful:


    Hope this helps

    Thursday, March 15, 2012 9:51 AM
  • I think you also reach a limit of the maximum size of one web service call, which is 64 MB (= 65536 KB), which becomes the practical limit.

    When files are uploaded, the content is Base64 encoded, which makes them larger. How much larger depends on the file content, but I reckon on ~40MB as the largest file size that can be reliably uploaded, though this number may be a bit conservative

    Microsoft CRM MVP - http://mscrmuk.blogspot.com  http://www.excitation.co.uk

    Thursday, March 15, 2012 10:51 AM
  • This looks like a kerberos issue. The message "The target principal name is incorrect" would indicate that a SPN is defined but is different from the expected value.
    article présenter
    Thursday, March 15, 2012 11:44 AM