Problem with ThreadAbort in App_Web_dlt0v2t4.dll

Hi,

I faced a problem in ASP.NET 2.0 where the application is retrieving data via OLE-DB and then suddenly it starting throwing TheadAbortException. Even though the application continued, but it seems a problem in the future at the back of my mind so if anybody can help with the below questions it will great. And the following is the Output from Output and call stack

Call Stack:

> App_Web_dlt0v2t4.dll!login.initialize(Object sender = {ASP.login_aspx}, System.EventArgs e = {System.EventArgs}) Line 23 Basic

Output:

Warning: Cannot debug script code. Script debugging is disabled for the application you are debugging. Please uncheck the 'Disable script debugging' option on the Internet Options dialog box (Advanced page) for Internet Explorer and restart the process.
A first chance exception of type 'System.NullReferenceException' occurred in comdat.DLL
A first chance exception of type 'System.NullReferenceException' occurred in comdat.DLL
A first chance exception of type 'System.NullReferenceException' occurred in comdat.DLL
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
A first chance exception of type 'System.Threading.ThreadAbortException' occurred in App_Web_dlt0v2t4.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in App_Web_dlt0v2t4.dll but was not handled in user code

Questions:

1. Which process should I attach the debugger to find out what is happening in the App_Web DLL

2. The last message call before it falls into this problem is a Response.Redirect(), I do not see how it can happen... so if someone know more about this - would you kindly explain how this process suppose to happen

Many thanks!

Mark




Answer this question

Problem with ThreadAbort in App_Web_dlt0v2t4.dll

  • Spumbu1977

    Thanks this helped alot

  • Raj Patil

    Hi!

    Thanks for asking! I'm a member of the ASP.NET team, and was just popping over here to see what was going on. The best place to ask ASP.NET questions is over on the ASP.NET forums at http://www.asp.net/welcome.aspx tabindex=1&tabid=39

    HTH,

    PEte



  • Thomas Murphy - MSFT

    I had a similiar problem. But when i modify the Response.Redirect("page.aspx") to Response.Redirect("page.aspx", False) the exception went away. Anyone know the reason for this
  • P_B

    HI

    I have had the same problem with CLUB WEB SITE Starter kit (using with no changes).

    The problem is related to the response redirect:

    the error is

    "A first chance exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll
    An exception of type 'System.Threading.ThreadAbortException' occurred in mscorlib.dll but was not handled in user code"

    Probably there are relation with master page and threading and the leaving time.

    Angelo


  • SM-007

    Hi,
    If I understand the popup info of the Response.Redirect() function correctly, the bool parameter indicates if the currently executing page should abort it's execution or continue... So by setting the parameter to false, you allow the current page (and also it's thread) to finish properly. Of course it should not generate an exception when not using the bool parameter.

  • Problem with ThreadAbort in App_Web_dlt0v2t4.dll