ASP.NET中一般处理程序报的错误:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值

1.把context.Response.End();代码换成 HttpContext.Current.ApplicationInstance.CompleteRequest();

2.把context.Response.End();代码放在try {}catch{}finally{ context.Response.End()}中的finally中

原文地址:https://www.cnblogs.com/liuguangfa/p/5162210.html