Me Myself & C#

Manoj Garg’s Tech Bytes – What I learned Today

Fixing Sys.WebForms.PageRequest ManagerParserErrorException in AJAX

Posted by Manoj Garg on July 3, 2008

Recently I came across a problem where my aspx page was throwing an exception

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’

after some googling lightbulb found following article by Eilon Lipton

http://weblogs.asp.net/leftslipper/archive/2007/02/26/sys-webforms-pagerequestmanagerparsererrorexception-what-it-is-and-how-to-avoid-it.aspx

While goin through this article the reason why I was getting that exception.

Actually I has a page which had an UpdatePanel and a ASP Button control on clicking of which I wanted to load another aspx page in the same masterpage. for this what I was using Server.Transfer, which was actually causing the problem. After I replaced the Server.Transfer with Response.Redirect. I got through and it saved lots of my time. thumbs_up

Ha-P Coding.. smile_teeth

Advertisements

2 Responses to “Fixing Sys.WebForms.PageRequest ManagerParserErrorException in AJAX”

  1. Manoj said

    I found one more article which has a good discussion around this exception.

    http://dotnetdebug.net/2006/12/28/syswebformspagerequestmanagerparsererrorexception/

    this post might help in knowing where all this exception could occur.

  2. asp.net, c#,javascript…

    […]Fixing Sys.WebForms.PageRequest ManagerParserErrorException in AJAX « Me Myself & C#[…]…

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: