locked
I am getting Eception RRS feed

  • Question

  • User-1765411704 posted

    hi,

     i m running the following code but my if-else loop is infinitely recursive and thus i m getting the Exception as

    An unhandled exception of type 'System.StackOverflowException' occurred in microsoft.practices.enterpriselibrary.configuration.dll

    Server Application Unavailable

    my code is->

    public void bindGrid()

    {

    try

    {

    DataSet ds=new DataSet();

    ds=rule.retRec();

    int cntRec=ds.Tables[0].Rows.Count;

    if(cntRec==1)

    {

    lblErrorMsg.Visible=false;

    btnAddRule.Visible=true;

    btnUpdateRule.Visible=false;

    btnCancel.Visible=false;

    dgWtgRule.Visible=true;

    btnEdit.Visible=true;

     

     

    }

    else

    {

     

    lblErrorMsg.Visible=true;

    lblErrorMsg.Text="There is no Rule Defined Yet so far";

    btnAddRule.Visible=true;

    btnUpdateRule.Visible=false;

    btnCancel.Visible=false;

    dgWtgRule.Visible=false;

    btnEdit.Visible=false;

     

    }

    dgWtgRule.DataSource=ds;

    dgWtgRule.DataBind();

    }

    catch(Exception ex)

    {

    Response.Write(ex.ToString());

    }

    Plz help me immediately

    Thanks in advance

    Friday, January 5, 2007 6:46 AM

All replies

  • User-244641733 posted
    LOOKS like some error in your configuration or some custome config file
    Monday, January 8, 2007 9:29 AM