![](/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.