This is a migrated thread and some comments may be shown as answers.

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

1 Answer 158 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Madhu Palakurthi
Top achievements
Rank 1
Madhu Palakurthi asked on 21 May 2013, 04:40 AM
Hi,

I am implementing webmail in to my application by referring http://demos.telerik.com/aspnet-ajax/webmail/ 

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") {
               ajaxManager.set_enableAJAX(false);
               setTimeout(function() {
                   ajaxManager.set_enableAJAX(true);
               }, 0);
           }
       }


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

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

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..



  




 

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 24 May 2013, 05:20 AM
Hi,

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.

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 their blog feed now.
Tags
Ajax
Asked by
Madhu Palakurthi
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or