Click here to Skip to main content
15,906,645 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
i am using
Response.Redirct("default.aspx")

after the code coming this error
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack how to solve this error
Posted
Updated 2-May-18 23:21pm

Response.Redirct("default.aspx",false);

I add false in my code
so solved my probelm


Thanks
 
Share this answer
 
v2
Comments
Frank Silva 25-Aug-16 13:36pm    
I have the same issue. Form one day to another the app stops working when loging users ans redirecting them to an inner page. I Use Response.Redirect("page.aspx") and now it no longer works. I added the false, and the thig is that now I have no exception (the other one is not an exception either) but the redirection is not performed either. So user is stucked at login page. Any other suggestions besides this one?
string url = "Index.aspx";
  Response.Redirect(url, false);
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900