Ajax Redirects

2 posts, 0 answers
  1. John Snyder
    John Snyder avatar
    43 posts
    Member since:
    Mar 2006

    Posted 23 Oct 2008 Link to this post

    Dev Environment: VS 2008 
    Telerik.Web.UI: 2008.2.826.35
    Build: ASP.Net 3.5

    In my local development environment (localhost), all response.redirects work fine.  When I deploy the code to the web server, the redirects do not work and I get the following error:

    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 ' 
    <!DOCTYPE html P'. 

    Why would the redirects work on my machine but not on the webserver?

    In my previous version of the website (using a previous Telerik build and using ASP.Net 2.0) everything worked just fine.

    I know that previously you could not do response.redirects but that changed a while back (the application has been in a production environment for the last 3 months using them on an ajaxified pages without problem).


  2. Sebastian
    Sebastian avatar
    9934 posts

    Posted 27 Oct 2008 Link to this post

    Hi Dustin,

    Is it possible that Session writing is involved in the case in which you encountered the PageRequestManager parser error? If so, I think that the solution discussed in the following blog post will help you address the problem in question.

    Other possible reason for this exception to be raised is that you have not configured your ASP.NET AJAX-enabeld web site appropriately. To troubleshoot the case, review the techniques presented in this article from the documentation:


    Best regards,
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Back to Top