Getting exception like Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.?
<p>i am getting this error: Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.</p>

<p>and this is my code where i am getting error.</p>

<pre><code>if (Session["edit"].ToString() == "y" || Session["master"].ToString() == "y" || Session["del"].ToString() == "y")
                {
                    btncancel.Text = "Cancel";
                    //txtprodesc.Text = txtpronm.Text = "";
                    ds = new DataSet();
                    ds =settcls.SelectallproductSuppliersetting();
                    if (ds.Tables[0].Rows.Count &gt; 0)
                    {
                        btnsave.Enabled = btnedit.Enabled = false;
                        txtsetproductid.Visible = false;
                        txtpreid.Visible = true;
                        lbmsg.Visible = true;
                        lbmsg.Text = "Enter Productid";
                        txtpreid.Focus();

                        Response.Redirect(this.Page.AppRelativeVirtualPath);
                    }
</code></pre>
