CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2016
    Posts
    4

    ASP.NET maximum length exceed issue

    Hello,

    We have found error while exceeding maximum request length. It happens when we send request to the server.
    Can anyone please help with the technical solution for this.

    Thank you

  2. #2
    Join Date
    Aug 2016
    Posts
    3

    Re: ASP.NET maximum length exceed issue

    Hello,

    I was facing the same problem, I also tried to resolve this by myself but unable to do so. However, this company MSP IT Concepts (www.mspconcepts.com) resolved this for me. They have excellent ASP.NET development team which helped me fix this and many other bugs in my ASP.NET related stuff. you may want to get in touch with brijesh.l@mspconcepts.com I'm sure they would be able to help. They are professionals & quick to provide accurate solution for your web development projects.

    Thanks

  3. #3

    Re: ASP.NET maximum length exceed issue

    If you are using IIS for hosting your application, then the default upload file size if 4MB. To increase it, please use this below section in your web.config -
    Code:
    <configuration>
        <system.web>
            <httpRuntime maxRequestLength="1048576" />
        </system.web>
    </configuration>
    For IIS7 and above, you also need to add the lines below:
    Code:
     <system.webServer>
       <security>
          <requestFiltering>
             <requestLimits maxAllowedContentLength="1073741824" />
          </requestFiltering>
       </security>
     </system.webServer>
    Note: maxAllowedContentLength is measured in bytes while maxRequestLength is measured in kilobytes, which is why the values differ in this config example. (Both are equivalent to 1 GB.)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured