由于代码已优化或本机框架位于调用堆栈顶部,因此无法计算表达式 [英] Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack

查看:12
本文介绍了由于代码已优化或本机框架位于调用堆栈顶部,因此无法计算表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到错误:

无法计算表达式,因为代码已优化或本机框架位于调用堆栈顶部.

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

我已在转发器的 itemcommand 事件中重定向到新页面.错误发生在这一行:

I have redirected to a new page in repeater's itemcommand event. The error occurs at the line:

string url = "~/Galleries/AlbumImageList.aspx?UId=" + this.UserId.ToString() + "&AlbumId=" + e.CommandArgument.ToString();
Response.Redirect(url);

有人可以帮我吗?有什么问题吗?_COMPlusExceptionCode 是 -532459699.

Can anybody please help me? Is anything wrong there? The _COMPlusExceptionCode is -532459699.

推荐答案

使Response的第二个参数false如下图所示.

Make second argument of Response false as shown below.

Response.Redirect(url,false);

这篇关于由于代码已优化或本机框架位于调用堆栈顶部,因此无法计算表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆