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

[Solved] How to Handle Errors on AjaxRequest

1 Answer 273 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
EkoEvolution
Top achievements
Rank 1
EkoEvolution asked on 16 Oct 2007, 05:30 AM
// --> It seems you wire up the OnAsyncPostBackError event of the Script Manager and run any Logging that needs to be done there and you can change the output <-- //

I am now getting the following Stack Trace for my error that is occuring when I have a usercontrol inside a wizard. When I wire up a button to ajaxify the whole wizard and then click on a button that fires an event i get this error.

   at Telerik.Web.UI.ProxyScriptControl.GetChildScriptDescriptorsRecursive(Control parent, ArrayList scriptDescriptors)

   at Telerik.Web.UI.ProxyScriptControl.GetChildScriptDescriptorsRecursive(Control parent, ArrayList scriptDescriptors)

   at Telerik.Web.UI.ProxyScriptControl.GetChildScriptDescriptorsRecursive(Control parent, ArrayList scriptDescriptors)

   at Telerik.Web.UI.ProxyScriptControl.GetChildScriptDescriptorsRecursive(Control parent, ArrayList scriptDescriptors)

   at Telerik.Web.UI.ProxyScriptControl.GetChildScriptDescriptorsRecursive(Control parent, ArrayList scriptDescriptors)

   at Telerik.Web.UI.ProxyScriptControl.GetChildScriptDescriptorsRecursive(Control parent, ArrayList scriptDescriptors)

   at Telerik.Web.UI.ProxyScriptControl.GetChildScriptDescriptorsRecursive(Control parent, ArrayList scriptDescriptors)

   at Telerik.Web.UI.ProxyScriptControl.GetScriptDescriptors()

   at System.Web.UI.ScriptControlManager.RegisterScriptDescriptors(IScriptControl scriptControl)

   at System.Web.UI.ScriptManager.RegisterScriptDescriptors(IScriptControl scriptControl)

   at Telerik.Web.UI.ProxyScriptControl.Render(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.Control.Render(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.Control.Render(HtmlTextWriter writer)

   at System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

   at Telerik.Web.UI.PreControlToAjaxify.Render(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.Control.Render(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

   at System.Web.UI.PageRequestManager.RenderFormCallback(HtmlTextWriter writer, Control containerControl)

   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer)

   at System.Web.UI.HtmlFormWrapper.System.Web.UI.IHtmlForm.RenderControl(HtmlTextWriter writer)

   at System.Web.UI.PageRequestManager.RenderPageCallback(HtmlTextWriter writer, Control pageControl)

   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.Page.Render(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

   at Telerik.Web.UI.RadAjaxControl.RenderPageInAjaxMode(HtmlTextWriter writer, Control page)

   at System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children)

   at System.Web.UI.Control.RenderChildren(HtmlTextWriter writer)

   at System.Web.UI.Page.Render(HtmlTextWriter writer)

   at System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)

   at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)

   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

Wrote to Log: True



With the old RadAjaxManager there was a method called OnAjaxRequestError that could be called to catch erros and display them on screen. Now it appears that method is not there in Prometheus or I have totally missed it.

I am getting a rather ubiquitous error or Object reference is not set to an instance of an object. Just wonderign what I can use to catch the error and get a little bit more out of it.

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 22 Oct 2007, 06:04 AM
Hi EkoEvolution,

Sorry for the late reply. You are right about this event - OnAjaxRequestError was removed due to OnAsyncPostBackError event of the Script Manager. Can you send us an example demonstrating this weird exception? I will review your project and I will get back to you with more info.

Greetings,
Vlad
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
EkoEvolution
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or