Handle ajax errors and debug application

6 posts, 0 answers
  1. Mac P
    Mac P avatar
    86 posts
    Member since:
    Mar 2010

    Posted 14 Jul 2010 Link to this post

    Hello,
    My application is built on telerik ajax platform. I keep on getting following error at random on telerik tab strip control that have dynamic page view which loads user control. The sequence is random and occurs on any tab. If i set enableajax=false than i never get error and everything works great. Is there a way i can figure out where the error orginates from?
    Once i get error the page hangs and user has to refresh the page causing loss of data.

     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_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a8f393b2b-3315-402f-b504-cd6d2db001f6%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%3aen-US%3acf630f82-0e77-4618-bf5c-22b81f4ec1c5%3a16e4e7cd%3af7645509%3a22a6274a%3aed16cbdc%3a24ee1bba%3ae330518b%3a1e771326%3ac8618e41%3a8e6f0d33%3aaa288e2d%3aa7e79140%3a6a6d718d%3a874f8ea2%3a19620875%3a33108d14%3a8674cba1%3ab7778d6c%3ac08e9f8a%3aa51ee93e%3a59462f1, line 6 character 84093

    Secondly i have robust error handling mechanism on server side (elmah), log4net at middle tier and database logger.
    Can i implement some centralized error handling for ajax erros?

    This error is driving me crazy

    Line: 6
    Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near 'Telerik.Web.UI 2010.'.

  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 15 Jul 2010 Link to this post

    Hi Mac,

    Please review the following help topic which elaborates on Error Handling For Ajax Requests.
    I hope this helps.

    All the best,
    Maria Ilieva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  3. Mac P
    Mac P avatar
    86 posts
    Member since:
    Mar 2010

    Posted 15 Jul 2010 Link to this post

    Thanks.
  4. Mac P
    Mac P avatar
    86 posts
    Member since:
    Mar 2010

    Posted 20 Jul 2010 Link to this post

    I have implemented ajax handler and most of the errors are handled now. Only error that is not handled is

    Error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
    Details: Error parsing near 'Telerik.Web.UI 2010.'.

    The event

     

    OnAsyncPostBackError

     

     

    ="RadScriptManager1_AsyncPostBackError" never gets fired if i get above error and page just hangs.

     

     

     

     

    Is there a way to handle the error?
    I have checked my code and i dont have response.write. I do have http handlers to download the files and radupload handler that i use to upload the file using silverlight control in the application.

    Regards
    Mac

  5. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 22 Jul 2010 Link to this post

    Hello,

    The specified message is not an error in your code as this is the Telerik trial message. It will stop popping up as soon as you upgrade to the Dev version of the controls.


    All the best,
    Maria Ilieva
    the Telerik team
    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 Public Issue Tracking system and vote to affect the priority of the items
  6. Mac P
    Mac P avatar
    86 posts
    Member since:
    Mar 2010

    Posted 22 Jul 2010 Link to this post

    Maria,

    Thanks for your reply. This messages has really reduce lot of stress on our side. Would be buying telerik software shortly.
Back to Top