Wednesday, 21 March 2012

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

Actually we can't say that its a error .Its similar to exception that occured during URL Loading events.

Solution : Write like ths......   Make second argument of response.redirect(url,false);

Request.Redirect(url,false); 

Otherwise , no need to chnage in current scenario. It will not harm your code.
Just put in Try...Catch .
In Catch {Give name of Url you want to redirect...}




 

No comments:

Post a Comment