您的位置:首页 > 编程语言 > Lua

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

2006-06-12 23:20 567 查看
代码:
if (_inputValues.Count > 0)
{
DABusiness.MemberFltUserInfo.Save_UserInfo(_inputValues);
Response.Redirect("~/SelectPassengerInfo.aspx");
}
Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
<-- this error is usually only caused if your response.redirect is in a file that is in a frame. Seems response.redirect doesn't work with frames

resolvent:
response.redirect("nextpage.aspx",false);
worked for me.

reference:
http://support.microsoft.com/kb/312629/EN-US/

I have just run into this error, using a Response.Redirect().

I have got past the error, by running a Response.Clear() before the Redirect, perhaps you can do something similar with the Server.Transfer, or use the Response.Clear(), Redirect combination.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐