Error: Thread was being aborted.
Stack Trace :
at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpResponse.Redirect(String url, Boolean endResponse)
at System.Web.HttpResponse.Redirect(String url)
Response.Redirect is added within a try-catch block by ONLY providing a url will cause the above error.
An exception will be thrown, even though it can still redirect to the URL that you want. (you can track this error in debug mode)
To resolve this:
Response.Redirect(url,false)
add a boolean indicator to end the response
Reference: here
No comments:
Post a Comment