Monday, April 1, 2013

[Solved]Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack

In this case you have to do this:
In place of Response.End() you have to use HttpContext.Current.ApplicationInstance.CompleteRequest()

and in place of Response.Redirect, use the Response.Redirect ("Error.aspx", false);
and in place of Server.Transfer, use the Server.Execute method

No comments:

Post a Comment