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

Sys.WebForms.PageRequestManagerParserErrorException error when using radA:RadScriptManager

6 Answers 267 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
sunny
Top achievements
Rank 1
sunny asked on 10 Dec 2008, 06:19 AM

Hi Its Shrawan fro a:m web,

In my last post i have asked u about rad ajax problem in mozilla 3.0 in radControls for asp.net not asp.net ajax,
Thankyou very much for ur reply
anyway i have installed radcontrols fro asp.net ajax and i get rid of that perticulat input string error,

But now when i am using radajaxloadingpanel controls it asked me to place radscript manager and http handler in web.config I have placed that, But now when i have clicked on any of the buttons in whichever forms i used this rascript manager i am getting following exception as an alert and i am not able continue my navigation beyond this

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 PUB'.

u can see tat error in http://globalcarbon.amwebhost.net/index.aspx goto anyof calculators on ur right side like quick,house,car etc and try to hit the button and then go to shopping_cart.aspx click on next button u will get the error instance there also,

Can u please help me how should i overcome this error,

Thak you

Hope i will get a quich solution from u, awaiting for that

Sravan@amweb.ie

6 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 12 Dec 2008, 01:40 PM
Hello Sunny,

Could you please let me know whether the problem persists if you are using regular asp ScriptManager instead of RadScriptManager?
Also please note that this is a generic ASP.NET AJAX framework error and you can take a look at the following blog post that elaborates on the matter.


Sincerely yours,
Maria Ilieva
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Ben
Top achievements
Rank 1
answered on 24 Jul 2011, 03:25 AM
for me, removal of the compression module from web.config always works.
0
deepak
Top achievements
Rank 1
answered on 06 Sep 2011, 08:40 AM
hi Maria ,
I am also getting the same error When on button click I am opening a download dialogue to download a file.the C# code for which is as follwing:

Response.ClearHeaders();

Response.ClearContent();

Response.Buffer =

true;

 

Response.AddHeader(

"Content-Disposition", "attachment; filename=" + file.Name);

 

Response.AddHeader(

"Content-Length", file.Length.ToString());

 

Response.ContentType =

"application/octet-stream";

 

Response.TransmitFile(FilePath);

Response.Flush();

 The error I get is some thing like this:

"sys.WebForms.PageParseManagerParseErrorException"The message received from the

server could not be parsed. Common causes for the error are when response is

modified by calls to Response.write(), reponse.filters or server trace is enabled

Details" error parsing near 'PK.."



 Well the solution suggested on the link provided by you is valid when we use Ajax Updatepanel.And it says that we just need to keep the Button triggering the asyncronous post back outside the Updatepanel. but I am using Radajaxmanager and even If I dont ajaxify the Button I am still getting the error.
how do I simply synchronously submit the page on Button click and initiate the downlaod of a file.

Regards,
Deepak
0
deepak
Top achievements
Rank 1
answered on 06 Sep 2011, 01:21 PM
hi,
I got the solution. With the help of a javascript I am explicilty posting back the entire page and then the problem with download wouldnt appear.
Something like this would help:

 

function mngRequestStarted(ajaxManager, eventArgs)

 

{

 

//Disable Ajax when doing an excel export, and force a full post back

 

 

if (eventArgs.get_eventTarget().indexOf("btnDownload") != -1) {

 

eventArgs.set_enableAjax(

false);

 

}

}

And we can initiate like this:

 

<

 

telerik:RadAjaxManager ID="RadAjaxManager1" runat="server" ClientEvents-OnRequestStart="mngRequestStarted">

 



Regards,
Deepak

0
Matt
Top achievements
Rank 1
answered on 07 Jan 2015, 09:02 PM
I know this post is old but I'm getting the same error and the recommend fix is not working. Upon request start, the ajax should be disabled and yet I'm getting this error "Error parsing near 'PK...".

I think it's time to rethink allow full post-backs.
0
Maria Ilieva
Telerik team
answered on 12 Jan 2015, 12:41 PM
Hi Matt,

Can you please elaborate a bit more on your scenario and present the page markup and the related code behind that is leading to the described error?
As the error can appear in various scenarios it will be best to provide some more information so that we can easily isolate the root cause of the issue.

Regards,
Maria Ilieva
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Ajax
Asked by
sunny
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Ben
Top achievements
Rank 1
deepak
Top achievements
Rank 1
Matt
Top achievements
Rank 1
Share this question
or