Friday, July 04, 2008

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

I got the error message with Response.Redirect(url);


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

Use the following statement will fix the error.

Resoponse.Redirect(url,false);

2 comments:

Anonymous said...

thanks, works like charm.

DotNetGuts said...

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

http://dotnetguts.blogspot.com/2009/01/unable-to-evaluate-expression-because.html