This page crashed IIS6 and now throws Service Unavailable

  1. #1

    This page crashed IIS6 and now throws Service Unavailable

    Very weird. I was getting a "RowLayout does not contain a def. for Rows" error (even though it came up thru code completion) so I started breaking it down to see where the issue. Loaded up the below and IIS crashed and now this page throws <h1>Service Unavailable</h1>.... Any Ideas? All of my other pages work fine.



    <%@ Page Language="C#" %>
    
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    
    <script runat="server">
        protected void Page_Load(object sender, EventArgs e)
        {
            Coolite.Ext.Web.LayoutColumn layoutcolumn = new Coolite.Ext.Web.LayoutColumn { ColumnWidth = .2M };
            Coolite.Ext.Web.Panel nspanel = new Coolite.Ext.Web.Panel { Collapsible = true, TitleCollapse = true, AutoHeight = true, Frame = true };
            Coolite.Ext.Web.ColumnLayout columnlayout = new Coolite.Ext.Web.ColumnLayout();
    
            Coolite.Ext.Web.LayoutRow layoutrow = new Coolite.Ext.Web.LayoutRow { RowHeight = .5M };
            Coolite.Ext.Web.Panel formcolpanel = new Coolite.Ext.Web.Panel { Border = false, Header = false };
            Coolite.Ext.Web.RowLayout rowlayout = new Coolite.Ext.Web.RowLayout();
    
            Coolite.Ext.Web.Label lbl = new Coolite.Ext.Web.Label { Text = "&amp;nbsp;" };
            layoutrow.Items.Add(lbl);
            rowlayout.Rows.Add(layoutrow);
            formcolpanel.Items.Add(rowlayout);
            layoutcolumn.Items.Add(formcolpanel);
            columnlayout.Columns.Add(layoutcolumn);
    
            layoutrow = new LayoutRow { RowHeight = .5M };
    
            Coolite.Ext.Web.Button btn = new Coolite.Ext.Web.Button { Text = "Search", Icon = Icon.Find, CausesValidation = false, AutoPostBack = false };
    
            layoutrow.Items.Add(btn);
            rowlayout.Rows.Add(layoutrow);
            formcolpanel.Items.Add(rowlayout);
            layoutcolumn.Items.Add(formcolpanel);
            columnlayout.Columns.Add(layoutcolumn);
            
            nspanel.Items.Add(columnlayout);
    
            this.form1.Controls.Add(nspanel);
        }
    </script>
    
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
        <ext:ScriptManager ID="ScriptManager1" runat="server" />
        
        
    
        </form>
    </body>
    </html>
    Application Event Log Shows:
    EventType clr20r3, P1 w3wp.exe, P2 6.0.3790.1830, P3 42435be1, P4 system.web, P5 2.0.0.0, P6 4889dee0, P7 2d59, P8 0, P9 system.stackoverflowexception, P10 NIL.

  2. #2

    RE: This page crashed IIS6 and now throws Service Unavailable

    Hi Jason,

    I reproduced the error, but I think it's just a circular reference. You're adding a control to it's self. I think.


    Geoffrey McGill
    Founder
  3. #3

    RE: This page crashed IIS6 and now throws Service Unavailable

    uh, yeah... sorry long night.



Similar Threads

  1. [CLOSED] Collapse panel throws error
    By machinableed in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jun 05, 2012, 3:29 AM
  2. [CLOSED] Adding panels to a tab panel throws exception
    By RCM in forum 2.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 09, 2012, 6:28 PM
  3. [CLOSED] UpdateSelection() throws javascript error
    By sadaf in forum 1.x Legacy Premium Help
    Replies: 3
    Last Post: Mar 07, 2011, 11:14 AM
  4. how to deploy the website on IIS6
    By dkDrag in forum 1.x Help
    Replies: 1
    Last Post: Dec 01, 2009, 8:54 PM
  5. Paging and Sorting Example throws exception
    By Skorfulose in forum 1.x Help
    Replies: 1
    Last Post: Nov 19, 2009, 3:30 AM

Posting Permissions