PDA

View Full Version : Control with type 'Recaptcha.RecaptchaControl' cannot be handled by layout



xtremexploit
Jun 06, 2012, 3:22 PM
Hello,

I am using recaptcha (google), and it is working in 1.3 and 1.4, and we are using ext.net 2.0.

We are using the control as the same way that we did it in 1.4 but an error is throw..

here the source code:



<ext:Panel ID="Panel36" runat="server" Collapsible="false" FieldLabel="Escribe las dos palabras que aparecen en la imagen usando un espacio para separarlas, si usted no entiende el texto puede generar dos nuevas palabras dando click en el boton <img src='http://www.google.com/recaptcha/api/img/red/refresh.gif' /> o tambien puede escuchar las palabras dando click en el boton <img src='http://www.google.com/recaptcha/api/img/red/audio.gif' /> (Se requiere bocinas para emitir el sonido)" LabelAlign="Left" Layout="FormLayout" Border="true" AnchorVertical="100%" Width="320" LabelSeparator="">
<Content>
<recaptcha:RecaptchaControl ID="RecaptchaControl1" runat="server" Theme="red" Language="es" ToolTip="Escribe las dos palabras de la imagen superior" PublicKey="XXXXX" PrivateKey="XXXXX" />
</Content>
</ext:Panel>


the result page:



Error de servidor en la aplicacin '/'.
Control with type 'Recaptcha.RecaptchaControl' cannot be handled by layout
Descripcin: Excepcin no controlada al ejecutar la solicitud Web actual. Revise el seguimiento de la pila para obtener ms informacin acerca del error y dnde se origin en el cdigo.

Detalles de la excepcin: System.Exception: Control with type 'Recaptcha.RecaptchaControl' cannot be handled by layout

Error de cdigo fuente:

Se ha generado una excepcin no controlada durante la ejecucin de la solicitud Web actual. La informacin sobre el origen y la ubicacin de la excepcin pueden identificarse utilizando la excepcin del seguimiento de la pila siguiente.

Seguimiento de la pila:

[Exception: Control with type 'Recaptcha.RecaptchaControl' cannot be handled by layout]
Ext.Net.AbstractContainer.PopulateItems(ControlCol lection contentControls, ItemsCollection`1 contentItems) +370
Ext.Net.AbstractContainer.get_ItemsProxy() +180
Ext.Net.AbstractContainer.get_ConfigOptions() +1497
Ext.Net.AbstractPanel.get_ConfigOptions() +39
Ext.Net.Panel.get_ConfigOptions() +15
Ext.Net.ClientConfig.Process(Object obj) +97
Ext.Net.ClientConfig.Serialize(Object obj, Boolean ignoreCustomSerialization, Boolean quoteName) +732
Ext.Net.BaseControl.get_InitialConfig() +92
Ext.Net.BaseControl.OnClientInit(Boolean reinit) +557
Ext.Net.Observable.OnClientInit(Boolean reinit) +36
Ext.Net.BaseControl.SetResources() +158
Ext.Net.BaseControl.PreRenderAction() +41
Ext.Net.Observable.PreRenderAction() +211
Ext.Net.BaseControl.Render(HtmlTextWriter writer) +294
Ext.Net.AbstractContainer.Render(HtmlTextWriter writer) +17
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
System.Web.UI.WebControls.WebControl.RenderContent s(HtmlTextWriter writer) +10
Ext.Net.BaseControl.HtmlRender(HtmlTextWriter writer) +349
Ext.Net.BaseControl.Render(HtmlTextWriter writer) +727
Ext.Net.AbstractContainer.Render(HtmlTextWriter writer) +17
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
System.Web.UI.WebControls.WebControl.RenderContent s(HtmlTextWriter writer) +10
Ext.Net.BaseControl.HtmlRender(HtmlTextWriter writer) +349
Ext.Net.BaseControl.Render(HtmlTextWriter writer) +727
Ext.Net.AbstractContainer.Render(HtmlTextWriter writer) +17
Ext.Net.TabPanel.Render(HtmlTextWriter writer) +137
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
System.Web.UI.WebControls.WebControl.RenderContent s(HtmlTextWriter writer) +10
Ext.Net.BaseControl.HtmlRender(HtmlTextWriter writer) +349
Ext.Net.BaseControl.Render(HtmlTextWriter writer) +727
Ext.Net.AbstractContainer.Render(HtmlTextWriter writer) +17
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter writer) +173
System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer) +31
System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output) +53
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.HtmlControls.HtmlForm.RenderControl( HtmlTextWriter writer) +40
System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children) +208
System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer) +8
System.Web.UI.Page.Render(HtmlTextWriter writer) +29
System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter) +27
System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +100
System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +25
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3060



Can some one help me ?

Vladimir
Jun 06, 2012, 3:32 PM
Remove Layout property from the panel

xtremexploit
Jun 06, 2012, 3:38 PM
Remove Layout property from the panel


thank you! it works now!