• When working with file in .net which has large uploads it gives error “Maximum Request length Exceed” because default upload file size is 4MB. So if we want to upload file size greater than 4MB we need to increase size of file upload size in web.config file.

    So to increase size of upload file we need to add following blocks to web.config file

    1. MaxRequestLength is given in KB and is the max size of request supported by ASP.NET
    2. MaxAllowedContentLength is given in bytes and is max length of content in a request supported by IIS
    3. Here, Both values MaxRequestLenth and MaxAllowedContentLength properties has same value 1 GB in KB and bytes respectively
    4. If in an application both value is specified, then smaller from both value gets the priority.

    For more detail you can refer,

0 Years in
0 Loyal
0 Successful

Words from our clients


Tell Us About Your Project

We’ve done lot’s of work, Let’s Check some from here