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.

5 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

Leave a Reply