![](/img/trans.png)
[英]label not updated in System.Threading.ThreadAbortException
[英]system.threading .threadAbortException error
我正在接管现有的网站,并且试图使应用程序在计算机上运行,但是由于出现以下错误,所以无法启动该应用程序。
System.Threading.ThreadAbortException occurred
HResult=0x80131530
Message=Thread was being aborted.
Source=mscorlib
StackTrace:
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
这是我的代码
protected void Application_BeginRequest(object sender, EventArgs e) {
if (DemoWeb.Helpers.Application.ApplicationManager.StartUpError != "")
{
Response.Write("<div class=\"demoweb-securityerror\">" + demoweb.Helpers.Application.ApplicationManager.StartUpError + "</div>");
Response.End();
}
我怎样才能绕过response.end?
我知道了。 我只是添加了一个try and catch方法并移动了Response.End
try {
// code
}
catch(exception ex)
{
Response.End();
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.