Thread Abort Exception

In Asp.net application ,I have checked log files of the application i have found more exceptions  logged with “Thread Abort Exception“.This exception occurred due to wrong usage of the Response.Redirect in the application and it will effect application performance.

In general  we using below way
Response.Redirect(URL);

the right way of usage is
Response.Redirect(URL, false);
Context.ApplicationInstance.CompleteRequest();

By avoiding this exception performance of the Page response  will be increase.

Reference

Advertisements