Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8516805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T05:32:00+00:00 2026-06-11T05:32:00+00:00

As we know , Server.Transfer throws ThreadAbortException when executed. Also , ThreadAbortException inherits Exception

  • 0

As we know , Server.Transfer throws ThreadAbortException when executed.

Also , ThreadAbortException inherits Exception :

enter image description here

So why the exception wont enter the catch block in :

  try
   {
         Server.Transfer("NoPremissionSell.aspx");
   }

  catch (Exception  e)
   { }

while it will in :

  try
   {
         Server.Transfer("NoPremissionSell.aspx");
   }

  catch (ThreadAbortException e)
   { }

edit ,

This is working in both 2 scenarios. I don’t know why it didnt work before.
please ignore.

sorry for misleading.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T05:32:01+00:00Added an answer on June 11, 2026 at 5:32 am

    A number of exception types are treated differently by the .NET runtime (the Command Language Infrastructure, CLI, that underlies the execution of assemblies).

    Eg. StackOverflowException cannot be caught at all by .NET code.

    The reason for this depends on the exception. In the case of StackOverflowException because the CLI cannot guarantee the correctness of the state of the process.

    In the case of a ThreadAbortException the special treatment is because while it can be caught it must be re-thrown (automatically) so the thread will end.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know, wether Server.Transfer will work in a Web Farm. Thanking
I know that Server.Transfer() should be used to redirect to another .aspx page on
I know that SQL Server does not have boolean data type and your best
I know that SQL server use memory cache for the all operations by loading
How can i know if PHP server is installed on my pc ? and
I know mongrel is the default server for script/server but when I do that
I know about Allow Triggers to Fire Others server setting that allows the action
I know ClientID is used for javascript and UniqueId for server side and that
I know you can redirect subdomains to a different server, but can you do
I know you can do bulk XML inserts into SQL Server 2005 tables from

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.