Welcome, Guest. Please login or register.
Did you miss your activation email?
Your Ad Here
dotNETprogrammers.net/forum :: A community for .NET developers « Engineeringserver.com :: General community public boards « Partner communities « DotNETprogrammers.net « DotNETprogrammers.net «  (Moderators: ES-Staff, OutRunner)Topic: A first chance exception of type 'System.Threading.ThreadAbortException' occurre
Pages: [1]   Go Down
  Print  
Author Topic: A first chance exception of type 'System.Threading.ThreadAbortException' occurre  (Read 535 times)
0 Members and 1 Guest are viewing this topic.
HappyFace
Javaforums.net admin
Senior Member
*

Reputation: 16
Developer @ Engineeringserver network
Offline Offline
Posts: 2549
Referrals: 12
Activity
12%

WWW Awards
« on: August 18, 2009, 10:09:11 AM »

Quote
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

You get this error when you try to redirect to another page while the code is being run within a try/catch block on the current page. The solution is to set the endresponse to false like this:

Response.Redirect("~\\yourPage.aspx", false);

instead of
Response.Redirect("~\\yourPage.aspx");

Although i still need to figure out why it happens, any idea?
Logged

It doesn't matter how hard you've studied; the material won't be on the exam anyway.
Admin @ www.Engineeringserver.com General Admin @ www.Javaforums.net and it's subsites Forum admin @ www.Javaforums.net Global moderator @ www.Engineeringserver.com network Java / .NET blogger @ www.Engineeringserver.com/blog
XMA performer since 2006 @ http://www.engineeringserver.com/XMA-NaN/ Fan of http://www.retardedweblogger.com
Oh man, too much stuff to do in so little time.

http://www.javaforums.net...lery.html;sa=media;id=170
http://img222.imageshack....707/arkietomatoesmall.jpg
http://img208.imageshack.us/img208/7141/smalli.png
Blizzcon 2k9 Grubby and Cassandra Ng engaged ! <3
Triple D, eerste Denken Dan Doen
dotNETprogrammers.net/forum :: A community for .NET developers
« on: August 18, 2009, 10:09:11 AM »

 Logged
Pages: [1]   Go Up
  Print  
dotNETprogrammers.net/forum :: A community for .NET developers « Engineeringserver.com :: General community public boards « Partner communities « DotNETprogrammers.net « DotNETprogrammers.net «  (Moderators: ES-Staff, OutRunner)Topic: A first chance exception of type 'System.Threading.ThreadAbortException' occurre
 
Jump to: