My Account |  Site Map | Contact Us  
Welcome Guest Search | Active Topics | Sign In | Register

EO.Web ScriptManager not detected? Options
Luis Angel
Posted: Monday, May 18, 2009 9:08:39 AM
Rank: Member
Groups: Member

Joined: 2/25/2008
Posts: 14
Hi,

I'm getting a very funny exception related with the EO webcontrols. The exception message is written bellow.

The problem is that there is a EO scriptmanager in the page. All my pages "inherit" from the same master page that has the <eo:ScriptManager ID="smEo" runat="server" /> tag.

This exception is appearing after a very specific situation:
1· I open a eo Dialog control (this dialog is defined in a user control)
2· I made a postback inside an update panel (async)
3· I made a normal (sync) postback -> Here comes the exception.

the problem is that I don't know what can I do to solve this problem, or the way to debug it and find the solution ... 8·(

any ideas?

thanks in advance 8·)
luis

pd. the exception message



Server Error in '/Siges.Web' Application.



An EO.Web control is rendered after an AJAX callback but there wasn't any EO.Web control on the page before the callback. The AJAX rendered EO.Web control will not function correctly under this situation. To correct this problem, please place an EO.Web ScriptManager outside of the AJAX update panel so that EO.Web client side script is correctly initialized before the AJAX call.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Exception: An EO.Web control is rendered after an AJAX callback but there wasn't any EO.Web control on the page before the callback. The AJAX rendered EO.Web control will not function correctly under this situation. To correct this problem, please place an EO.Web ScriptManager outside of the AJAX update panel so that EO.Web client side script is correctly initialized before the AJAX call.

Source Error:


Line 198: ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "initActualizacion",
Line 199: string.Format("wucActuacion_inicializaControlBuscaActuacion('{0}','{1}')", txtActuacion.ClientID, cmd.ClientID), true);
Line 200: base.Render(writer);
Line 201: }
Line 202:


Source File: e:\Luis\SEPES\SIGES\Dev\Web\Siges.Web\wuc\wucActuacion.ascx.cs Line: 200

Stack Trace:


[Exception: An EO.Web control is rendered after an AJAX callback but there wasn't any EO.Web control on the page before the callback. The AJAX rendered EO.Web control will not function correctly under this situation. To correct this problem, please place an EO.Web ScriptManager outside of the AJAX update panel so that EO.Web client side script is correctly initialized before the AJAX call.]
EO.Web.Internal.fr.a(bu A_0, Boolean A_1, Boolean A_2, HtmlTextWriter A_3, String A_4, String A_5, String A_6, String A_7) +841
EO.Web.Internal.ij.a(HtmlTextWriter A_0, Boolean A_1) +446
EO.Web.MaskedEdit.b(HtmlTextWriter A_0) +2527
EO.Web.WebControlBase.n(HtmlTextWriter A_0) +54
EO.Web.WebControlBase.a(HtmlTextWriter A_0) +140
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8683174
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8683174
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.UpdatePanel.RenderChildren(HtmlTextWriter writer) +234
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.UpdatePanel.Render(HtmlTextWriter writer) +34
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8683174
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
wuc_wucActuacion.Render(HtmlTextWriter writer) in e:\Luis\SEPES\SIGES\Dev\Web\Siges.Web\wuc\wucActuacion.ascx.cs:200
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8683174
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8683174
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.HtmlControls.HtmlTableRow.RenderChildren(HtmlTextWriter writer) +46
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8683174
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8683174
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +163
System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +32
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +51
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8683174
System.Web.UI.HtmlControls.HtmlForm.RenderControl(HtmlTextWriter writer) +40
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Control.Render(HtmlTextWriter writer) +10
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8683174
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlTextWriter writer, ICollection children) +134
System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +19
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Adapters.ControlAdapter.Render(HtmlTextWriter writer) +21
System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +8683129
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +8683174
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1266




eo_support
Posted: Monday, May 18, 2009 9:27:10 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 14,817
Hi,

We do not know for sure without seeing the problem. Can you create a test project that reproduces the problem?

Thanks!
Luis Angel
Posted: Monday, May 25, 2009 3:37:53 AM
Rank: Member
Groups: Member

Joined: 2/25/2008
Posts: 14
Hi Again! 8·)

First of all, let me thank you for your very fast reply. And sorry for my super-slow reply 8·).
I've been working with the problem in order to create a repro scenary. It has been harder than spected, but I've been able to do it, at last.

How can I send it to you?

eo_support
Posted: Monday, May 25, 2009 10:36:21 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 14,817
Hi,

Please check your private message for our replies.

Thanks!
eo_support
Posted: Wednesday, May 27, 2009 1:35:11 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 14,817
Hi,

We looked into the sample code you sent to us. I believe the issue is caused by your JavaScript code. It fails inside your SIGES_RahabilitaTodo when the second AJAX call completes. Since your function is hooked up to the PageRequestManager through add_endRequest, a failure in the code would cause all other endRequest handler after yours, in this case our handler to be skipped. This corrupts our internal states and causes the control to fail after you push the third button.

Thanks!
Luis Angel
Posted: Friday, May 29, 2009 8:19:34 AM
Rank: Member
Groups: Member

Joined: 2/25/2008
Posts: 14
hi!
first of all, thank you very much for your help!
The code that I've sent to you is not my actual code, and it looks like I "cutted" too much in order to give you the smaller possible repro code.

This jscript bug is not happenning in our production code, but you've send me a very good starting point, as the bug can be related with some jscript bug.

I'll make some more investigations, and I'll let you know my advancements 8·)

again, thank you very much for your help!

eo_support
Posted: Friday, May 29, 2009 9:06:20 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 14,817
Great. Please feel free to let us know if find anything.


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.