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
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
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
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
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.
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.
Anyone know what to do?
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
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
Thank you for sharing your findings with the community. This could help to someone experiencing similar issue.
Pavlina
Telerik
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!