This is a migrated thread and some comments may be shown as answers.

Scheduler - Maximum request length exceeded.

4 Answers 407 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Jagat
Top achievements
Rank 1
Jagat asked on 03 Mar 2016, 07:03 PM

Hi,

We use a scheduler in our site which by default loads all the appointments for everyone on that given day.

We have a separate drop down which has user names. When a username is selected from the list, schedule for that user is loaded in the scheduler.

When the scheduler is empty , it loads well.

In some cases where the calendar is full with appointments, when i select a user from the drop down, I get the error given below. I get this error before it goes to  dropdown_selectedindexchange event.  Does this have anything to do with the view state? What fix is needed to get it working ?

 

'System.Web.HttpUnhandledException' was thrown. ---> System.Web.HttpException: Maximum request length exceeded.
   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)

 

 

Thanks,

Ravi

4 Answers, 1 is accepted

Sort by
0
Jagat
Top achievements
Rank 1
answered on 04 Mar 2016, 04:01 PM

I disabled view state on the control to see if it helps. 

It helped me to see the appointments for the day but now, i cannot see the week view or month view.

 

Any help on this issue is appreciated.

Thanks in Advance

0
Accepted
Ivan Danchev
Telerik team
answered on 08 Mar 2016, 12:17 PM
Hello Jagat,

Have you set a value to the maxRequestLength property in the web.config? If you haven't its default value (4096 KB) will be used. If you are operating with large amount of data it might be exceeding this threshold, so you could try increasing it to 32 MB for instance. This can be done by adding the following to the system.web section in your web.config file:
<httpRuntime maxRequestLength="32768" />

For IIS the property that has to be set is maxAllowedContentLength and its value is in bytes. The following has to be added to the system.webServer section:
<security>
    <requestFiltering>
        <requestLimits maxAllowedContentLength="33554432" />
    </requestFiltering>
</security>

Let us know whether this resolves the issue or the exception is still present.

Regards,
Ivan Danchev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jagat
Top achievements
Rank 1
answered on 18 Mar 2016, 03:34 PM

This worked. 

 

Thanks,

0
Ivan Danchev
Telerik team
answered on 21 Mar 2016, 03:18 PM
Hello Jagat,

Thank you for getting back to us. I am glad we were able to help and the issue is resolved.

Regards,
Ivan Danchev
Telerik
Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Tags
Scheduler
Asked by
Jagat
Top achievements
Rank 1
Answers by
Jagat
Top achievements
Rank 1
Ivan Danchev
Telerik team
Share this question
or