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

This exception occur when we try to redirect a page.

Solution:

To solve this problem we should use second argument of Response.Redirect that will stop current page’s execution and move to next page. Sencond argument should be false.

Full solution is below