After migrating from Ext.Net V1.7 to Ext.Net 2.5 getting layout can not be handled error.

  1. #1

    After migrating from Ext.Net V1.7 to Ext.Net 2.5 getting layout can not be handled error.

    System.Exception: Control with type 'System.Web.UI.DataVisualization.Charting.Chart' cannot be handled by layout

    System.Web.HttpUnhandledException (0x80004005): Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> System.Exception: Control with type 'System.Web.UI.DataVisualization.Charting.Chart' cannot be handled by layout
    at Ext.Net.AbstractContainer.PopulateItems(ControlCol lection contentControls, ItemsCollection`1 contentItems)
    at Ext.Net.AbstractContainer.get_ItemsProxy()
    at Ext.Net.AbstractContainer.get_ConfigOptions()
    at Ext.Net.FieldSet.get_ConfigOptions()
    at Ext.Net.ClientConfig.Process(Object obj)
    at Ext.Net.ClientConfig.Serialize(Object obj, Boolean ignoreCustomSerialization, Boolean quoteName)
    at Ext.Net.ClientConfig.Serialize(Object obj, Boolean ignoreCustomSerialization)
    at Ext.Net.ClientConfig.Serialize(Object obj)
    at Ext.Net.BaseControl.get_InitialConfig()
    at Ext.Net.BaseControl.GetClientConstructor(Boolean instanceOnly, String body)
    at Ext.Net.BaseControl.GetClientConstructor()
    at Ext.Net.BaseControl.OnClientInit(Boolean reinit)
    at Ext.Net.Observable.OnClientInit(Boolean reinit)
    at Ext.Net.BaseControl.SetResources()
    at Ext.Net.BaseControl.PreRenderAction()
    at Ext.Net.Observable.PreRenderAction()
    at Ext.Net.BaseControl.Render(HtmlTextWriter writer)
    at Ext.Net.AbstractContainer.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(HtmlT extWriter writer, ICollection children)
    at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
    at System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer)
    at Ext.Net.ContentContainer.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(HtmlT extWriter writer, ICollection children)
    at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
    at System.Web.UI.WebControls.WebControl.RenderContent s(HtmlTextWriter writer)
    at Ext.Net.BaseControl.HtmlRender(HtmlTextWriter writer)
    at Ext.Net.BaseControl.Render(HtmlTextWriter writer)
    at Ext.Net.AbstractContainer.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(HtmlT extWriter writer, ICollection children)
    at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
    at System.Web.UI.WebControls.WebControl.RenderContent s(HtmlTextWriter writer)
    at Ext.Net.BaseControl.HtmlRender(HtmlTextWriter writer)
    at Ext.Net.BaseControl.Render(HtmlTextWriter writer)
    at Ext.Net.AbstractContainer.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(HtmlT extWriter writer, ICollection children)
    at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
    at System.Web.UI.Control.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter writer, ControlAdapter adapter)
    at System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter)
    at System.Web.UI.Control.RenderControl(HtmlTextWriter writer)
    at ASP.main_master.__RendermasterForm(HtmlTextWriter __w, Control parameterContainer) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temp orary ASP.NET Files\honeywell.ap3.webapp.vs2012\c30e5cd8\ae0273d b\App_Web_opegg4ga.0.cs:line 0
    at System.Web.UI.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children)
    at System.Web.UI.HtmlControls.HtmlForm.RenderChildren (HtmlTextWriter writer)
    at System.Web.UI.HtmlControls.HtmlContainerControl.Re nder(HtmlTextWriter writer)
    at System.Web.UI.HtmlControls.HtmlForm.Render(HtmlTex tWriter output)
    at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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.Control.RenderChildrenInternal(HtmlT extWriter writer, ICollection children)
    at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
    at System.Web.UI.Control.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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(HtmlT extWriter writer, ICollection children)
    at System.Web.UI.Control.RenderChildren(HtmlTextWrite r writer)
    at System.Web.UI.Page.Render(HtmlTextWriter writer)
    at System.Web.UI.Control.RenderControlInternal(HtmlTe xtWriter 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)
    at System.Web.UI.Page.HandleError(Exception e)
    at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    at System.Web.UI.Page.ProcessRequest()
    at System.Web.UI.Page.ProcessRequestWithNoAssert(Http Context context)
    at System.Web.UI.Page.ProcessRequest(HttpContext context)
    at ASP.pages_views_camview_aspx.ProcessRequest(HttpCo ntext context) in c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temp orary ASP.NET Files\honeywell.ap3.webapp.vs2012\c30e5cd8\ae0273d b\App_Web_i3zbggso.0.cs:line 0
    at System.Web.HttpApplication.CallHandlerExecutionSte p.System.Web.HttpApplication.IExecutionStep.Execut e()
    at System.Web.HttpApplication.ExecuteStep(IExecutionS tep step, Boolean& completedSynchronously)
  2. #2
    Hi @RajTeragunti,

    Welcome to the Ext.NET forums!

    Please remove any Layout or LayoutConfig settings of the Ext.NET container that holds the System.Web.UI.DataVisualization.Charting.Chart control.
  3. #3

    Control with type 'System.Web.UI.DataVisualization.Charting.Chart' cannot be handled by layout

    i am working with RAJ. Facing same issue. we are not using any layout for this.
    we are facing the following issues:
    1.Control with type 'System.Web.UI.DataVisualization.Charting.Chart' cannot be handled by layout
    2. Control with type 'System.Web.UI.HtmlControls.HtmlTableRow' cannot be handled by layout

    Code for your reference. we are strucking here. Plz help ASAP.

    <ext:FieldSet runat="server">
        <Content>
            <asp:TextBox runat="server" />
        </Content>
    </ext:FieldSet>
    Last edited by Daniil; Nov 18, 2014 at 12:07 PM.
  4. #4
    Hello,

    Please edit your forum post and add [CODE] tags around your code samples.

    The Forum Guidelines should be reviewed at:

    http://forums.ext.net/showthread.php?10205-More-Information-Required
    Last edited by geoffrey.mcgill; Nov 18, 2014 at 2:38 PM.
    Geoffrey McGill
    Founder
  5. #5
    Hi @velusoft,

    Welcome to the Ext.NET forums!

    My browser hangs up a bit opening the thread:) It is because of too big code sample. 6745 lines... I bet the most of the code is not required to reproduce the problem. It might be stripped down to 50 lines or so.

    After reading The Forum Guidelines, please also read this:
    How to prepare a sample

    Please avoid posting so many code in the future.

    I think the same problem might be reproducible with this test case.
    <ext:FieldSet runat="server">
        <Content>
            <asp:TextBox runat="server" />
        </Content>
    </ext:FieldSet>
    For now I can suggest to replace a FieldSet with a Container or a Panel. We will investigate how we can correct it.
  6. #6
    Created an Issue.
    https://github.com/extnet/Ext.NET/issues/597

    It has been fixed in the SVN trunk, revision #6165. The fix will be included to v2.5.4 release.
  7. #7

    Two issues reported in earlier post

    i have reported 2 issues in the earlier thread...Plz provide me details for those two separately.
    i am not able to relate your reply to the issues exactly.

    And also i am getting very generic exception in same page.


    Control with type 'Ext.Net.Store' cannot be handled by layout
  8. #8
    i have reported 2 issues in the earlier thread...Plz provide me details for those two separately.
    Basing on your code sample I were able to determine the only issue - a FieldSet with <Content>. Though, probably both the issues are related to this one.

    Ideally, please keep one issue per thread.

    By the way, I am going to remove your code sample. It really makes a browser hanging up a bit.

Similar Threads

  1. [CLOSED] Ext.Net.Store cannot be handled by Layout?
    By speedstepmem4 in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Mar 13, 2014, 9:43 AM
  2. [CLOSED] Control with type 'Ext.Net.Store' cannot be handled by layout
    By jesperhp in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Feb 07, 2014, 3:41 AM
  3. Replies: 11
    Last Post: Mar 20, 2013, 4:43 PM
  4. Replies: 4
    Last Post: Dec 02, 2012, 6:49 AM
  5. Table cannot be handled by layout
    By Bubu in forum 2.x Help
    Replies: 9
    Last Post: Nov 27, 2012, 4:33 AM

Posting Permissions