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

Uncaught Sys.WebForms.PageRequestManagerServerErrorException

12 Answers 2167 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Jay
Top achievements
Rank 1
Jay asked on 15 Jul 2013, 02:47 PM
I'm unclear as to what is causing this error but until recently this error was never being thrown. 
Here's the details:
1. Clicking on  a nav bar to load an .ascx page that's inside another .ascx page
2. Page never loads and appears to hang.
3. No server side errors are found during debugging so it appears to be client side

Here's the error message from Google Chrome's Developer Tools Console:
Uncaught Sys.WebForms.PageRequestManagerServerErrorException: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500 Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6
Error.create Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6
Sys.WebForms.PageRequestManager._createPageRequestManagerServerError Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:15
Sys.WebForms.PageRequestManager._parseDelta Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:15
Sys.WebForms.PageRequestManager._onFormSubmitCompleted Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:15
(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6
(anonymous function) Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6
Sys.Net.WebRequest.completed Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6
_onReadyStateChange Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=ctl00_ctl00_rsm_TSM&compre…e35%3aen-US%3a7263e9c6-5962-41bc-b839-88b704bfcf0d%3aea597d4b%3ab25378d2:6

Any ideas how I should try to trouble shoot this? Is it a page lifecycle issue?
Jason

12 Answers, 1 is accepted

Sort by
0
Jay
Top achievements
Rank 1
answered on 15 Jul 2013, 06:50 PM
I forgot to note that this doesn't occur when I run local but only when it's installed on a production server.
1
Andrey
Telerik team
answered on 16 Jul 2013, 01:54 PM
Hi,

In order to further investigate the issue please disable the Ajax by setting EnableAjax property to false of RadAjaxManager or RadAjaxPanel. Thus the exception will not be raised on the client but on the server and thus we would know where to look for the problem.

Regards,
Andrey
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Jay
Top achievements
Rank 1
answered on 18 Jul 2013, 02:22 PM
Can I do that just on the actual page throwing the error?
The problem is that my RadAjaxManager is on my master page and I'm using AJAX to launch a tab that allows me to then navigate to the page in question. If I set EnableAJAX=False on the master then I am unable to get to the page that's throwing the error.

I looked to see if the property is available on the RadAjaxManagerProxy but it's not.

I'm new to debugging AJAX issues so any additional guidance?
Jason
0
Andrey
Telerik team
answered on 22 Jul 2013, 02:06 PM
Hello,

Does the logic that is throwing the exception depends on the code that requires AjaxManager? If not you could comment out the code that depends on the AjaxManager and thus to see where the exception is raised. I am asking for this because the this is the easier way to find exactly which line generates the error.

If the code with the RadAjaxManager is required to reproduce the issue please share the full description of the error message and the full page source code and the code-behind file content. Then we will try to examine the code and let you know what might possibly cause this behavior.

Regards,
Andrey
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Jarrod
Top achievements
Rank 1
answered on 16 Aug 2013, 05:31 PM
Hi,

I ran into a similar situation where I would get this error every time an AjaxRequest was requested of the RadAjaxManager as part of the on_close event of a RadWindow. The issue ended up being that the URL on the parent page had no page defined (i.e., the parent page only showed mysite.net, not mysite.net\MyPage.aspx). I added a default page whose only purpose was to redirect to MyPage.aspx. Once the page name was in the URL, the AjaxRequests were processed correctly.

I hope this helps.
0
Marbry
Top achievements
Rank 1
answered on 17 Sep 2013, 10:15 PM
I was getting this as I was overriding the Render method and replacing certain portions of content.  I got around it by setting EnablePartialRendering on the script manager to false.  Although this may or may not work for you depending on how else you've implemented things on the page.
0
Niketa
Top achievements
Rank 1
answered on 04 Dec 2013, 09:13 PM
Hey Jay,

Could you fix this issue? I am also getting same error and also it only happens on server and does not happen when I run it locally.
0
EDILSON MARTINS
Top achievements
Rank 1
answered on 05 Dec 2013, 06:56 PM
Hello, I'm having the same problem. when I have a lot of data and GridTemplateColumn column in Grid, a simple sorting or grouping brings me the error: "PageRequestManagerServerErrorException:. An unknown error occurred while processing the request on the server status code returned from the server was 500." However, when this column retreat or disable a RadAjaxManager or few data in RadGrid the problem does not occur and everything goes perfectly.

Anyone know what to do?
0
Maria Ilieva
Telerik team
answered on 09 Dec 2013, 01:00 PM
Hello,

The mentioned PageRequestManager issue is rather generic and appear in various circumstances which is rather difficult to be directly pointed. Therefore could |i kindly ask you to open separate support tickets with detailed explanation of your scenarios (proving runnable version of application which demonstrates issue will be of a big help). This way we will be able to further investigate the problem and provide the best solutions for each specific case.

Regards,
Maria Ilieva
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
1
HrMeibom
Top achievements
Rank 2
Iron
answered on 29 Dec 2015, 01:54 PM

Hi all,

I ran into the same issue as the rest of you today, with the PageRequestManagerServerErrorException exception being thrown. I too, have a lot of data on some of my pages. Reading the entire thread didn't give my any solution, neither did Maria's suggestion. I also read a few other threads mentioning RadCompression as being part of the solution.

This all made me think that the issue is "a lot of data". My ajax callback simply exceeded the default value of maxRequestLength for some of my pages. I fixed the exception being thrown by increasing the maxRequestLength in my Web.config:

<system.web>
    <!-- 50MB in kilobytes, default is 4096 or 4MB -->
    <httpRuntime maxRequestLength="51200" />
</system.web>
 

The usual "Maximum Request Length Exceeded" exception is apparently wrapped in this strange PageRequestManagerServerErrorException.

I hope this helps...

Best regards,

Jannik

 

Archana
Top achievements
Rank 1
Iron
commented on 21 Apr 2023, 03:13 PM

Thank you so much! This took us in the right diection :)
0
Pavlina
Telerik team
answered on 30 Dec 2015, 02:56 PM
Hello,

Thank you for sharing your findings with the community. This could help to someone experiencing similar issue. 
 
Regards,
Pavlina
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
Archana
Top achievements
Rank 1
Iron
answered on 21 Apr 2023, 02:21 PM

In our case, we had to update the following updated in the web config:

<httpRuntime maxRequestLength="2147483647" executionTimeout="600" requestValidationMode="2.0" />

And under  

 <appSettings>

<add key="aspnet:MaxHttpCollectionKeys" value="2147483647" />

Hope it helps someone!

Tags
Ajax
Asked by
Jay
Top achievements
Rank 1
Answers by
Jay
Top achievements
Rank 1
Andrey
Telerik team
Jarrod
Top achievements
Rank 1
Marbry
Top achievements
Rank 1
Niketa
Top achievements
Rank 1
EDILSON MARTINS
Top achievements
Rank 1
Maria Ilieva
Telerik team
HrMeibom
Top achievements
Rank 2
Iron
Pavlina
Telerik team
Archana
Top achievements
Rank 1
Iron
Share this question
or