Control with type 'Recaptcha.RecaptchaControl' cannot be handled by layout

  1. #1

    Control with type 'Recaptcha.RecaptchaControl' cannot be handled by layout

    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(ControlCollection 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(HtmlTextWriter 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(HtmlTextWriter writer, ICollection children) +208
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
       System.Web.UI.WebControls.WebControl.RenderContents(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(HtmlTextWriter 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(HtmlTextWriter writer, ICollection children) +208
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
       System.Web.UI.WebControls.WebControl.RenderContents(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(HtmlTextWriter 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(HtmlTextWriter writer, ICollection children) +208
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
       System.Web.UI.WebControls.WebControl.RenderContents(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(HtmlTextWriter 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(HtmlTextWriter writer, ICollection children) +208
       System.Web.UI.HtmlControls.HtmlForm.RenderChildren(HtmlTextWriter writer) +173
       System.Web.UI.HtmlControls.HtmlContainerControl.Render(HtmlTextWriter writer) +31
       System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTextWriter output) +53
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter 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(HtmlTextWriter writer, ICollection children) +208
       System.Web.UI.Control.RenderChildren(HtmlTextWriter writer) +8
       System.Web.UI.Page.Render(HtmlTextWriter writer) +29
       System.Web.UI.Control.RenderControlInternal(HtmlTextWriter 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 ?
  2. #2
    Remove Layout property from the panel
    Vladimir Shcheglov
    Sr. Developer
  3. #3
    Quote Originally Posted by Vladimir View Post
    Remove Layout property from the panel

    thank you! it works now!

Similar Threads

  1. Replies: 11
    Last Post: Mar 20, 2013, 4:43 PM
  2. Replies: 7
    Last Post: Jan 29, 2013, 11:59 AM
  3. Replies: 8
    Last Post: Jul 20, 2012, 1:33 PM
  4. Replies: 1
    Last Post: Apr 26, 2012, 7:20 AM
  5. [CLOSED] Hourglass type thing on the PageTree control
    By ewgoforth in forum 1.x Premium Help
    Replies: 1
    Last Post: Nov 20, 2010, 4:09 AM

Posting Permissions