我正在接管一个现有的网站,我试图让应用程序运行在我的机器上,但我不能启动应用程序,因为我得到以下错误。
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?
发布于 2017-09-11 08:36:07
我让它开始工作了。我刚添加了一个尝试和捕获方法,并移动了Response.End
try {
// code
}
catch(exception ex)
{
Response.End();
}https://stackoverflow.com/questions/46150935
复制相似问题