Server Error in '/' Application.
--------------------------------------------------------------------------------
Thread was being aborted.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Threading.ThreadAbortException: Thread was being aborted.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[ThreadAbortException: Thread was being aborted.]
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +489
System.Web.ApplicationStepManager.ResumeSteps(Exception error) +446
System.Web.HttpApplication.ResumeSteps(Exception error) +12
System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData) +160
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +429
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
ps.網上很多答案說是Redirect.但我只在page load的時候有一個Response.Redirect("NoAuthority.aspx", False);
而且是!ispostback裏面的.
------解决思路----------------------
在大批量数据处理的情况,最好做一个ASYNC的多进程模式,把数据先放在文件数据库里(比如RAVEN DB,MONGO DB)。