错误:ExceptionState =无法计算表达式,因为代码已优化或本机框位于调用堆栈之上。 [英] Error : ExceptionState = Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.

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

问题描述

我收到一个错误:ExceptionState =无法计算表达式,因为代码已优化或本机框架位于调用堆栈之上。

将datatable转换为excel文件时



感谢高级

I got an error : ExceptionState = Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.
when Convert datatable to excel file

thanks advanced

推荐答案

我认为您正在使用Response.End,Response.Redirect或Server.Transfer方法,发生ThreadAbortException异常。

您可以使用 try-catch 语句来捕获此异常。



for您可以使用的更多信息 http://support.microsoft.com/kb/312629/en-us [ ^ ]
I think you are using the Response.End, Response.Redirect, or Server.Transfer method, a ThreadAbortException exception occurs.
You can use a try-catch statement to catch this exception.

for more information you can use http://support.microsoft.com/kb/312629/en-us[^]


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

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