Shopping cart solutions
Narola® InfotechMail for E-commerce Solutionsecommerce Application development

Services

Products


News Events

Unable to evaluate expression

ex = {Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.}

we get this type of error when we had used Response.Redirect() method in try block.

try
{
SmtpMail.Send(loMailData);
}
catch (Exception ex)
{
Response.Redirect("failure.html");
}
Response.Redirect("thanks.html");

in this it'll throw an exception beacause we had used Response.Redirect() in try block.Solution :remove the Response.Redirect() from try block and put it after the catch block.

try{
SmtpMail.Send(loMailData);
Response.Redirect("thanks.html");
}
catch (Exception ex)
{
Response.Redirect("failure.html");
}

Shopping cart solutionsCall us or write us to place an inquiry.
Home | About us | Technologies | Services | Products | Blog | Contact | Directory | Article | Knowledge Exchange | Sitemap
© 2005-09 http://www.narolainfotech.com | All Rights Reserved.
Narola Infotech RSS Narola Infotech Resource Sitemap Valid CSS! Valid XHTML 1.0 Transitional