无法评估EX pression因为code优化或本机框架是在调用堆栈的顶部是在、堆栈、本机、框架

2023-09-07 01:23:47 作者:你如眼中星辰

我收到错误:

无法评估EX pression因为code优化或本机框架调用堆栈的顶部。

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);

谁能帮帮我吗?是什么不对劲的地方? 该 _COMPlusException code 是 - 532459699

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

推荐答案

响应的第二个参数 假,如下图所示。

Response.Redirect(url,false);