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

[Solved] PageRequestManagerParserError exception

6 Answers 245 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
PaulMrozowski
Top achievements
Rank 1
PaulMrozowski asked on 02 May 2008, 01:27 PM
I've got a user control which has a number of controls on it (one of which is a RadGrid). I have a client-side event handler hooked up to it to cause a postback when you double-click on a row. My user control implements IPostBackEventHandler and processes the request. This is currently working.

Now I'd like to add a RadAjaxManager (v2007.3.1425.35) to the page, but can't seem to get it to work correctly (and I also have a few questions about it). I added RadAjaxManager to the page, set the various properties based on what to update when, and then ran my test page. When a postback occurs, it keeps failing back on the client side with,

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

Since this is a user control, it occurred to me that I'll have problems using RadAjaxManager in the UC if I happen to have more than one of these controls on a form (or my form is already using RadAjaxManager). So I pulled the RadAjaxManager code out and moved it into my ASPX page, and adjusted the AjaxSettings control for the user control as the source and as the updated control. I re-ran the page and I still receive the "Sys.WebForms.PageRequestManagerParserErrorException" error.

Any thoughts on what I'm missing/what is causing the error? Also, it appears like I can't have as fine-grained control of the Ajax updating process in user controls because I can only have RadAjaxManager appear once on a page. Or am I missing something?

6 Answers, 1 is accepted

Sort by
0
Konstantin Petkov
Telerik team
answered on 02 May 2008, 01:53 PM
Hi PaulMrozowski,

This is correct -- you can have a single RadAjaxManager per application. If you need some design-time configuration within the user controls, you can add there a RadAjaxManagerProxy control:

http://www.telerik.com/demos/aspnet/prometheus/Ajax/Examples/Manager/UserControl/DefaultCS.aspx

In case of some setting, which would require relations (ajaxify/update) between different naming containers, you can add the necessary settings dynamically. You will find more info here.

Let us know if you need further assistance.

All the best,
Konstantin Petkov
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
PaulMrozowski
Top achievements
Rank 1
answered on 02 May 2008, 02:01 PM
Thanks, that answers the second question. The main problem I've still got is the PageRequestManagerParserError. Any ideas on that one?
0
Maria Ilieva
Telerik team
answered on 07 May 2008, 07:29 AM
Hello PaulMrozowski,

I believe that this error appears when output caching is used.
It seems that the ms ajax framework itself has problems with cache output. See this forum post for more details.

Greetings,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Matthew
Top achievements
Rank 1
answered on 07 May 2008, 05:05 PM
I don't think the output caching is the cause (or the only cause) of this issue.  I'm getting the same error and I don't have output caching anywhere in my application.

In my scenario, I have an AjaxManager that I'm using with a RadToolbar and some labels.  I also have a RadTreeView wrapped in an AjaxPanel on the same page.  Whenever I have the RadTreeView postback, I get that error message.  But if I take away the AjaxManager on the page, then it works fine.  Can you have an AjaxManager and an AjaxPanel on the same page?

Thanks,
Matt
0
Bleddyn
Top achievements
Rank 1
answered on 08 May 2008, 11:25 AM
Is there an answer to this thread, as I am having the same problem! When i remove all telerik:RadAjaxPanel  instances works fine but as soon as I put them back in the error appears again! 
0
Maria Ilieva
Telerik team
answered on 08 May 2008, 02:42 PM
Hi Matt,

We do not recommend usage of RadAjaxManager and RadAjaxPanel together in one page. There are some known issues when using both the manager and the panel in some complex applications. However, note that a single RadAjaxManager (and no panels) in the master/main page could handle all the scenarios. More info is available in the help - RadAjaxManager --> HowTo --> MasterPage section.

Regards,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
PaulMrozowski
Top achievements
Rank 1
Answers by
Konstantin Petkov
Telerik team
PaulMrozowski
Top achievements
Rank 1
Maria Ilieva
Telerik team
Matthew
Top achievements
Rank 1
Bleddyn
Top achievements
Rank 1
Share this question
or