Uncaught Sys.WebForms.PageRequestManagerServerErrorException

12 posts, 0 answers
  1. Jay
    Jay avatar
    59 posts
    Member since:
    Apr 2009

    Posted 15 Jul 2013 Link to this post

    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
  2. Jay
    Jay avatar
    59 posts
    Member since:
    Apr 2009

    Posted 15 Jul 2013 Link to this post

    I forgot to note that this doesn't occur when I run local but only when it's installed on a production server.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 16 Jul 2013 Link to this post

    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.
  5. Jay
    Jay avatar
    59 posts
    Member since:
    Apr 2009

    Posted 18 Jul 2013 Link to this post

    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
  6. Andrey
    Admin
    Andrey avatar
    836 posts

    Posted 22 Jul 2013 Link to this post

    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.
  7. Jarrod
    Jarrod avatar
    4 posts
    Member since:
    Jun 2013

    Posted 16 Aug 2013 Link to this post

    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.
  8. Marbry
    Marbry avatar
    123 posts
    Member since:
    Aug 2012

    Posted 17 Sep 2013 Link to this post

    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.
  9. Niketa
    Niketa avatar
    1 posts
    Member since:
    Feb 2013

    Posted 04 Dec 2013 Link to this post

    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.
  10. EDILSON MARTINS
    EDILSON MARTINS avatar
    9 posts
    Member since:
    Mar 2013

    Posted 05 Dec 2013 Link to this post

    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?
  11. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 09 Dec 2013 Link to this post

    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.
  12. HrMeibom
    HrMeibom avatar
    2 posts
    Member since:
    Feb 2004

    Posted 29 Dec 2015 in reply to Maria Ilieva Link to this post

    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

     

  13. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 30 Dec 2015 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017