This is a migrated thread and some comments may be shown as answers.

Ajax Redirects

1 Answer 71 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
John Snyder
Top achievements
Rank 1
John Snyder asked on 23 Oct 2008, 08:12 PM
Dev Environment: VS 2008 
Telerik.Web.UI: 2008.2.826.35
Build: ASP.Net 3.5

Problem:
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).

Dustin

1 Answer, 1 is accepted

Sort by
0
Sebastian
Telerik team
answered on 27 Oct 2008, 11:51 AM
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:

http://www.telerik.com/help/aspnet-ajax/troubleshooting.html

Best regards,
Stephen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
John Snyder
Top achievements
Rank 1
Answers by
Sebastian
Telerik team
Share this question
or