background top

ASP.NET Ajax 1.0 error Sys.WebForms.PageRequestManagerParserErrorException

If you’ve seen this error, you’ve probably already spent some time trying to resolve it. We only encountered this error on our test server and it turned out the missing piece was a web.config setting. Also the following piece of code at the top of a page seems to alleviate some AJAX refresh bugs.

1) Make sure this in is your web.config

   <httpModules>
      <add name=”ScriptModule” type=”System.Web.Handlers.ScriptModule, System.Web.Extensions,               Version=1.0.61025.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35″/>
   </httpModules>

2) Add this to the to the Page declaration if you’re experiencing some page refresh bugs

   enableEventValidation=”false”

If you’ve found alternatives to this problem or our suggested solution isn’t working for you, please feel free to comment below.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • DZone
  • Reddit
  • TwitThis

13 Responses to “ASP.NET Ajax 1.0 error Sys.WebForms.PageRequestManagerParserErrorException”

  1. giovanni Says:

    hi. where I place this code: enableEventValidation=”false”
    ???

    thanks!

  2. giovanni Says:

    resolved
    THANKS!!

  3. spl0it Says:

    I believe you place the enableEventValidation in the page declaration.

    That line is at the top of the .aspx file and looks something like….

  4. ben Says:

    Great! Thanks this fixed it for me, i already had the the module declared for IIS7 in the , duplicating it for the old style worked for me! Is any reason its bad to declare it twice?

  5. Anu Aggarwal Says:

    setting EnablePartialRendering to false resolved my issue

  6. Shaik Soofi Says:

    I can access my web application from my computer(localhost). When i connect with external IP address I got the following errors?

    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’

  7. Newbie Says:

    I am Newbie in .Net Framework. I can access my web application from my computer(localhost). When i connect with live server. I got the following errors?

    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’

    Can you resolve this problem?

    Any helps would be appreciated.

    Thanks in advance.

  8. Shaik Says:

    Hi Anu,

    I got same error and i changed the coding like this: EnablePartialRendering=”false”

    But my web page automatically refresh it every few seconds.

    Can anyone tell how to resolve it?

    Thanks in advance

    email hidden; JavaScript is required

  9. Farhan Says:

    where to find the EnablePartialRendering.???
    i have not sovled the issue using the above solution. reply me urgent.

  10. quim Says:

    Example of one of my pages (you can locate this on top of every page, ‘CCMAN_Tree’ is my page name you should have a different name):

    After adding EnablePartialRendering=”false” to all my web pages, my problem was solved. Very nice TIP, thanks a lot.

  11. prasanth Says:

    iam using EnablePartialRendering=”false” in my master page script manager my problem will be solved

    Thank you for your suggestion

    with regards,
    prasanth

  12. Adriano Says:

    Excellent, thanks guy.

  13. Shankar Says:

    Im still getting the same error after following the above 2 steps..

Leave a Reply