context.Response.Write(tw.ToString());
                    
                    
context.Response.End();
 这句会报错,错误如下:由于代码已经过优化或者本机框架位于调用堆栈之上,无法计算表达式的值
根据MS的解释• 对于 Response.End,调用 HttpContext.Current.ApplicationInstance.CompleteRequest 方法而不是 Response.End 以跳过 Application_EndRequest 事件的代码执行。
如果用 HttpContext.Current.ApplicationInstance.CompleteRequest();替换了 Response.End()那么结果就是没有反应了 ,请高手指点一下