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

Thursday, 7 July 2011
I got this error when using Response.Redirect in a Try-Catch. I'd never seen it before, but it is resolved by specifying 'false' after the URL like below. This tells the execution of the current page not to terminate: 

Response.Redirect("whatever.aspx",false);

0 comments:

Post a Comment