Click here to Skip to main content
15,889,462 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted

1 solution

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[^]
 
Share this answer
 
v2

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