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
This entry was posted in Articles and tagged , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s