Error : Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed ?

2 posts, 0 answers
  1. Madhu Palakurthi
    Madhu Palakurthi avatar
    48 posts
    Member since:
    Nov 2009

    Posted 20 May 2013 Link to this post


    I am implementing webmail in to my application by referring 

    From above example is showing basic idea of webmail. I have implemented other functionalities to my screen like showing attachments.

    but when click on attachment , throwing an error : " Microsoft JScript runtime 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. "

     From above link, showing email details in the detailsview in the 3rd pane. here i am showing attachments in the radgrid above the details view ( refer attachment "email1" ).

    Even I disable the ajax while downloading , still the same problem.
    function gridCommand(sender, args) {
               if (args.get_commandName() == "DownloadAttachment") {
                   setTimeout(function() {
                   }, 0);

    Download the file is working when I commented below lines "<telerik:AjaxUpdatedControl ControlID="RadGridAttachment" />

    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1" OnAjaxRequest="RadAjaxManager1_AjaxRequest">
            <telerik:AjaxSetting AjaxControlID="RadGrid1">
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" />
                    <telerik:AjaxUpdatedControl ControlID="DetailsView1" />
                   <%-- <telerik:AjaxUpdatedControl ControlID="RadGridAttachment" />--%>
            <telerik:AjaxSetting AjaxControlID="RadTreeView1">
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="RadToolBar1" />
                    <telerik:AjaxUpdatedControl ControlID="DetailsView1" />
            <telerik:AjaxSetting AjaxControlID="RadAjaxManager1">
                    <telerik:AjaxUpdatedControl ControlID="RadGrid1" LoadingPanelID="RadAjaxLoadingPanel1" />
                    <telerik:AjaxUpdatedControl ControlID="DetailsView1" LoadingPanelID="RadAjaxLoadingPanel1" />
                   <%-- <telerik:AjaxUpdatedControl ControlID="RadGridAttachment" />--%>
                    <telerik:AjaxUpdatedControl ControlID="RadNotification1" />

    But If i comment above lines then attachments are not refreshing , i.e not showing based on selection. we should remain keep this lines as uncommented.

    please help me on this.. how to resolve this error..

    Thanks in advance..


  2. Andrey
    Andrey avatar
    836 posts

    Posted 24 May 2013 Link to this post


    Could you verify that you are using the same command as the one in our online demo application - "DownloadAttachment"? If you are using another command name then the Ajax won't be stopped because the condition won't be evaluated to true.

    If you could share your full page source code that will help the people who want to assist you to better understand your case.

    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 their blog feed now.
Back to Top