Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8057191
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:56:50+00:00 2026-06-05T08:56:50+00:00

I have a web application I support that have sometimes huge web pages to

  • 0

I have a web application I support that have sometimes huge web pages to render.

Sometimes I have this exception (it is not linked to an upload the user make, the webpage render about 22MB of Html):

Error Caught in Page : http://example.com/thepage.aspx
Error Message:Maximum request length exceeded.
Stack Trace:   at System.Web.HttpRequest.GetEntireRawContent()
   at System.Web.HttpRequest.FillInFormCollection()
   at System.Web.HttpRequest.get_Form()
   at System.Web.HttpRequest.get_HasForm()
   at System.Web.UI.Page.GetCollectionBasedOnMethod(Boolean dontReturnNull)
   at System.Web.UI.Page.DeterminePostBackMode()
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint

I tried to use maxRequestLength property of HttpRuntime node in web.config but it doesn’t seem to control that.

As test case I tried to set it to 5K but the webpage shows even if it’s bigger (it’s around 150K) so I guess it will not permit to show huge webpages.

Is there a way I can control maximum response size and avoid the “Maximum request length exceeded” error ?

If it changes anything we are using .Net 4.0 with IIS 6.0

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T08:56:52+00:00Added an answer on June 5, 2026 at 8:56 am

    Set Response.Buffer=false for that page, and use the Response.Flush() time to time as you render your page.

    This way you can avoid to render all data at ones to the buffer and wait this buffer to full before send it.

    Also disable the viewstate on the controls that you do not needed.

    If the above can not solve the issue then you need to redesign your page using a different type of control that allow them and you can send data to the browser time to time using the fluah(). A repeater control can work, maybe a gridview may not work.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I have an asp.net Web Application (Not Web Site) that I am trying
I have a web application that requires Blog Forum Chat support etc Now my
We have a web application that manages inventory for our computer support group. One
I have a web application that uses spring and hibernate for JPA support, but
I Have a web application that will support a large number of connections. Each
I have a web application that will be used by the public. This application
I have a web application that supports a variety of clients on various platforms
I have web application and I do not really care about IE6 users. However
I have a web application inside where i need to check whether the user
I have a web application that runs fine under IIS5 or IIS6. I just

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.