PageRequestManagerParserErrorException Error when implementing Ajax and using Update Panel with sharepoint

Using Jan Tielens SmartPart Using the AJAX Control Toolkit in SharePoint in could be very interesting but sometimes you might get this horror error  like

Sys.WebForms.PageRequestManagerParserErrorExeption: 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 '_TextBox'.

You could get a very detailed article here from Mike Ammerlans Blog on how to integrate Ajax and WSS but it might not solve all the the issues and errors.
 Another very good blog here is by  Eric Lipton which tells you what is it and how to avoid it and you could get some good tricks when using  Ajax in sharepoint or your normal ASP.NET apps.

After trying different scenario by placing the asp:ScriptManager beneath the WebPartManager registration  (search for  <WebPartPages:SPWebPartManager id="m" runat="Server" />):<asp:ScriptManager runat="server" ID="ScriptManager1"></asp:ScriptManager>

I also tried adding validateRequest=false and it didn't work

Even if you try to add them directly to your sharepoint pages WSS it will throw an error saying it doesn't want it.
I evntually added:


<pages enableEventValidation="false"/>

to my web.config and that did the trick.

Maybe there is an updated version of the  AJAX Control Toolkit .But if you have the version 
Version=1.0.10123.0 then bad luck you will need to do all these to get it going.

Hope that helps



 


 

 

posted @ Wednesday, September 12, 2007 7:26 PM

Print

Comments on this entry:

# re: PageRequestManagerParserErrorException Error when implementing Ajax and using Update Panel with sharepoint

Left by Ashok at 3/23/2008 6:18 PM
Gravatar
Try this!. Time out will be one of the cause.
<asp:ScriptManager AsyncPostBackTimeout="300" ID="ScriptManager1" runat="server" />

Your comment:



 (will not be displayed)


 
 
 
 

Live Comment Preview:

 
«November»
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345