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

Error when writing to Response

13 Answers 2488 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
lkeel
Top achievements
Rank 1
lkeel asked on 19 Jan 2010, 12:23 PM
I have run into a bit of an issue.  When I try to do Response write on my website, I keep getting this error:

Microsoft JScript runtime 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 '/jKdRzWx0huuXqI3TN3L'.

I get this error after my code has completed and the execution is going back to do a page refresh.  I know this is kind of bare minimum, but can anyone give any insight based on this information from this error?

Thanks in advance.
Lee

13 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 19 Jan 2010, 01:19 PM
Hi Lee,

Common cause of this error is when the response is modified by calls to Response.Write(). Please review the following topic which elaborates on this error.

Additionally, you can review Hristo Deshev's blog post:
Firewalls breaking ASP.NET AJAX!

Sincerely yours,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
lkeel
Top achievements
Rank 1
answered on 20 Jan 2010, 05:36 AM
I was talking to someone who was also working on this project and he says things were working before I added the telerik loading panel.  I added this because the user presses a button to generate a file and this is can be a long process.  So I took the loading panel out and I don't get the error So I took the loading panel out and I don't get the error.  So the error seems to be tied to the loading panel.  Anyone have any ideas?  Should I post this to another forum?
0
Pavlina
Telerik team
answered on 20 Jan 2010, 01:19 PM
Hi lkeel,

Unfortunately AJAX does not support server trace like Server.Execute(), Server.Transfer(), or modifying response with calls to Response.Write(), response filters, HttpModules, etc.

Do not hesitate to contact us if other questions or problems arise.

All the best,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
lkeel
Top achievements
Rank 1
answered on 21 Jan 2010, 05:52 AM
I guess I should understand what you just said, but I didn't....  So in laymen terms, you are saying I can't put a RadLoadPanel on a page that I also want to call Response.Write?  If that is the case, then I have to say that this seems VERY LIMITING.  Seems like a key use for this panel is to show long processing which often happens when trying to do something on the server and sending that to the client.

Thanks for the response... I guess,
Lee
0
Pavlina
Telerik team
answered on 21 Jan 2010, 03:08 PM
Hi Lee,

RadControls for ASP.NET AJAX are build on top of MS AJAX Framework. However ajax does not support calls to Response.Write(), http filters and server tracing. Therefore,  you cannot use Response.Write() on a page ajaxifies with RadAjax either.

For more information, please refer to the following link:
http://www.google.bg/search?hl=en&source=hp&q=response.write+asp.net+ajax&aq=0&aql=&aqi=g6&oq=Response.write+asp.net+&cad=h

I hope this helps.

Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
lkeel
Top achievements
Rank 1
answered on 22 Jan 2010, 03:20 AM
I promise I am not trying to be difficult here, but I don't think this is correct.  I have followed your link and the first 2 links I click (http://encosia.com/2007/06/19/the-easiest-way-to-break-aspnet-ajax-pages/ and http://forums.asp.net/t/1083296.aspx) give an exact way to do what I was trying to do with MS Ajax.  And again, I am using the RadScriptManager, RadAjaxManager and RadAjaxPanel in several places and Response.Write() works just fine.  It only stops working once I put the RadAjaxLoadingPanel on the page.  SO, I don't see how you can say this is a problem with Ajax when it works until I put this control on the page.
0
Pavlina
Telerik team
answered on 22 Jan 2010, 01:13 PM
Hello lkeel,

RadAjaxLoadingPanel should not cause the error you received. The Response.Write() method could works fine with RadAjaxManager when the button which calls the Response.Write() is not ajaxified.

However, in order to progress in the resolution of this matter I will ask you to open a formal support ticket and send us a simple working project with reproduced this erroneous behavior. In that way we can pinpoint the problems you're facing on our side and provide a solution.

Looking forward for your reply.

At this point
Best wishes,
Pavlina
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
mathieu cupryk
Top achievements
Rank 1
answered on 17 Jul 2012, 08:30 PM
I get the same error
http://demos.telerik.com/aspnet-ajax/grid/examples/automaticoperations/efdatabinding/defaultcs.aspx

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'.
  
U guys need to fix this it is everywhere. I am trying to get people to buy the product.

http://forums.asp.net/t/1066976.aspx/1


Please get back to me.
0
Pavlina
Telerik team
answered on 20 Jul 2012, 08:25 PM
Hi,

Can you specify what steps we should follow in order to replicate the described error in Entity Framework Operations demo?

Kind regards,
Pavlina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Catherine
Top achievements
Rank 1
answered on 09 May 2018, 03:27 AM
I was getting this error when calling Response.BinaryWrite() from a RadGrid GridButtonColumn link.
The grid was inside an asp:placeholder on an Ajaxified Content page.
When I removed it from the placeholder, the error no longer occurred.
0
Catherine
Top achievements
Rank 1
answered on 09 May 2018, 03:58 AM
I have the placeholder specified as an UpdatedControl in the RadAjaxManager AjaxSettings in order to control visibility.
With this commented out, the link works, but the visibility doesn't.
0
Kamlesh
Top achievements
Rank 1
answered on 18 May 2018, 11:22 AM

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 ' Thank you for using'.

 

I am getting this while i move appoinments in rad scheduler.I have created Rad scheduler dynamic within

<asp:UpdatePanel runat="server" ID="Up1" UpdateMode="Conditional">
                    <ContentTemplate>
                        <telerik:RadPersistenceManager ID="RadPersistenceManager1" runat="server">
                            <PersistenceSettings>
                                <%--<telerik:PersistenceSetting ControlID="RadGrid1" />--%>
                            </PersistenceSettings>
                        </telerik:RadPersistenceManager>

                        <telerik:RadDockLayout runat="server" ID="RadDockLayout1">
                            <div class="row">
                                <telerik:RadDockZone runat="server" ID="RadDockZone1" MinWidth="250" MinHeight="550" CssClass="col-lg-3 mangezindex">
                                </telerik:RadDockZone>
                                <telerik:RadDockZone runat="server" ID="RadDockZone2" MinWidth="250" MinHeight="550" CssClass="managemargin col-lg-9 mangezindex">
                                </telerik:RadDockZone>
                            </div>
                            <div class="row">
                                <telerik:RadDockZone runat="server" ID="RadDockZone3" MinWidth="250" MinHeight="550"
                                    Style="margin-top: 15px; max-width: 100%; z-index: 4;" CssClass="managemargin col-lg-12">
                                </telerik:RadDockZone>
                            </div>
                        </telerik:RadDockLayout>
                    </ContentTemplate>
                </asp:UpdatePanel>

 

Please provide me a solution.

 

0
Marin Bratanov
Telerik team
answered on 18 May 2018, 11:49 AM
Hi Kamlesh,

This can happen when the trial message (https://docs.telerik.com/devtools/aspnet-ajax/licensing/trial-license-limitations#trial-licenses) renders during a partial postback. It renders randomly and in most cases partial rendering will still work without this error.

The only guaranteed way to avoid this particular scenario is to have a commercial license so you can use the commercial versions of our assemblies that do not add this message.


Regards,
Marin Bratanov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Ajax
Asked by
lkeel
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
lkeel
Top achievements
Rank 1
mathieu cupryk
Top achievements
Rank 1
Catherine
Top achievements
Rank 1
Kamlesh
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or