Breaking News

Editors Picks

Monday, June 18, 2012

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


“Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack" - This is one of the common error we see in forum where people request solution for it.
Below is a explanation and resolution to resolve this Problem,
This error normally occurs when we use Response. Redirect or Server. Transfer or Response. End in our code before completing the actual process the page was doing.
In this case what you have to do is          

and in place of Response.Redirect, use the Response.Redirect ("PagaName.aspx", false);

and in place of Server.Transfer, use the Server.Execute method

No comments :

Post a Comment

Contact Us

Name

Email *

Message *