asp.net的response.end超级恶心的bug

如果把

 

response.end放在try/catch里面,就会报错:

 

at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()

 

大概原因是当前线程要结束了,但是这个try/catch还在拖后腿。

posted @ 2009-12-10 18:37    阅读(779)  评论(0编辑  收藏  举报
IT民工