Sys.WebForms.PageRequestManagerParserErrorException error when using radA:RadScriptManager

7 posts, 0 answers
  1. sunny
    sunny avatar
    6 posts
    Member since:
    Mar 2007

    Posted 10 Dec 2008 Link to this post

    Hi Its Shrawan fro a:m web,

    In my last post i have asked u about rad ajax problem in mozilla 3.0 in radControls for not ajax,
    Thankyou very much for ur reply
    anyway i have installed radcontrols fro ajax and i get rid of that perticulat input string error,

    But now when i am using radajaxloadingpanel controls it asked me to place radscript manager and http handler in web.config I have placed that, But now when i have clicked on any of the buttons in whichever forms i used this rascript manager i am getting following exception as an alert and i am not able continue my navigation beyond this

    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 '

    <!DOCTYPE html PUB'.

    u can see tat error in goto anyof calculators on ur right side like quick,house,car etc and try to hit the button and then go to shopping_cart.aspx click on next button u will get the error instance there also,

    Can u please help me how should i overcome this error,

    Thak you

    Hope i will get a quich solution from u, awaiting for that

  2. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 12 Dec 2008 Link to this post

    Hello Sunny,

    Could you please let me know whether the problem persists if you are using regular asp ScriptManager instead of RadScriptManager?
    Also please note that this is a generic ASP.NET AJAX framework error and you can take a look at the following blog post that elaborates on the matter.

    Sincerely yours,
    Maria Ilieva
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Ben
    Ben avatar
    1 posts
    Member since:
    Jul 2011

    Posted 23 Jul 2011 Link to this post

    for me, removal of the compression module from web.config always works.
  4. deepak
    deepak avatar
    3 posts
    Member since:
    Mar 2011

    Posted 06 Sep 2011 Link to this post

    hi Maria ,
    I am also getting the same error When on button click I am opening a download dialogue to download a file.the C# code for which is as follwing:



    Response.Buffer =




    "Content-Disposition", "attachment; filename=" + file.Name);



    "Content-Length", file.Length.ToString());


    Response.ContentType =





     The error I get is some thing like this:

    "sys.WebForms.PageParseManagerParseErrorException"The message received from the

    server could not be parsed. Common causes for the error are when response is

    modified by calls to Response.write(), reponse.filters or server trace is enabled

    Details" error parsing near 'PK.."

     Well the solution suggested on the link provided by you is valid when we use Ajax Updatepanel.And it says that we just need to keep the Button triggering the asyncronous post back outside the Updatepanel. but I am using Radajaxmanager and even If I dont ajaxify the Button I am still getting the error.
    how do I simply synchronously submit the page on Button click and initiate the downlaod of a file.

  5. deepak
    deepak avatar
    3 posts
    Member since:
    Mar 2011

    Posted 06 Sep 2011 Link to this post

    I got the solution. With the help of a javascript I am explicilty posting back the entire page and then the problem with download wouldnt appear.
    Something like this would help:


    function mngRequestStarted(ajaxManager, eventArgs)




    //Disable Ajax when doing an excel export, and force a full post back



    if (eventArgs.get_eventTarget().indexOf("btnDownload") != -1) {







    And we can initiate like this:




    telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="mngRequestStarted">



  6. Matt
    Matt avatar
    49 posts
    Member since:
    Jun 2012

    Posted 07 Jan 2015 in reply to deepak Link to this post

    I know this post is old but I'm getting the same error and the recommend fix is not working. Upon request start, the ajax should be disabled and yet I'm getting this error "Error parsing near 'PK...".

    I think it's time to rethink allow full post-backs.
  7. Maria Ilieva
    Maria Ilieva avatar
    4017 posts

    Posted 12 Jan 2015 Link to this post

    Hi Matt,

    Can you please elaborate a bit more on your scenario and present the page markup and the related code behind that is leading to the described error?
    As the error can appear in various scenarios it will be best to provide some more information so that we can easily isolate the root cause of the issue.

    Maria Ilieva

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

Back to Top