I got this error message while clicked my submit button System.Threading.ThreadAbortException: Thread was being aborted. any one know more about this exception ?
The exception that is thrown when a call is made to the Abort method.
If the code executing on the thread is taking too long, ASP.NET can abort the thread, which means the SDK doesn't get fully initialized. This may cause further downstream errors such as the inability to create a session.
so please check code, where exactly thread is getting aborted.
I also suspect it could be in here, I have seen this often when people use a try /catch and put the response.redirect in the wrong place, just need to see the code of the button click.
Please remember to Mark As Answer if helpful
Regards, Christiandev (@chrisdev80), MCPD Web (2 & 4) & MCTS Windows (www.ScoreDonkey.com)
sujilkumar
Member
115 Points
134 Posts
System.Threading.ThreadAbortException: Thread was being aborted
May 24, 2012 09:21 AM|LINK
I got this error message while clicked my submit button System.Threading.ThreadAbortException: Thread was being aborted. any one know more about this exception ?
santosh.jagd...
Star
7625 Points
1454 Posts
Re: System.Threading.ThreadAbortException: Thread was being aborted
May 24, 2012 09:31 AM|LINK
The exception that is thrown when a call is made to the Abort method.
If the code executing on the thread is taking too long, ASP.NET can abort the thread, which means the SDK doesn't get fully initialized. This may cause further downstream errors such as the inability to create a session.
so please check code, where exactly thread is getting aborted.
MCP
christiandev
Star
8597 Points
1841 Posts
Re: System.Threading.ThreadAbortException: Thread was being aborted
May 24, 2012 09:37 AM|LINK
Can you please post the code in the click event of the button?
Regards, Christiandev (@chrisdev80), MCPD Web (2 & 4) & MCTS Windows (www.ScoreDonkey.com)
ramiramilu
All-Star
95275 Points
14072 Posts
Re: System.Threading.ThreadAbortException: Thread was being aborted
May 24, 2012 09:50 AM|LINK
Read more about this exception here - http://msdn.microsoft.com/en-us/library/system.threading.threadabortexception.aspx
Thanks,
JumpStart
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: System.Threading.ThreadAbortException: Thread was being aborted
May 24, 2012 10:37 AM|LINK
is it happen at Response.Redirect statement ?
christiandev
Star
8597 Points
1841 Posts
Re: System.Threading.ThreadAbortException: Thread was being aborted
May 24, 2012 11:04 AM|LINK
I also suspect it could be in here, I have seen this often when people use a try /catch and put the response.redirect in the wrong place, just need to see the code of the button click.
Regards, Christiandev (@chrisdev80), MCPD Web (2 & 4) & MCTS Windows (www.ScoreDonkey.com)