Hi,
If I put a try catch block for Server.Transfer call. It will catch a
System.Threading.ThreadAbortException exception like this. However, it
transfer the page to the correct page. Why did this exception occur?
Thanks.
------------------------------------
{"Thread was being aborted." }
[System.Threading.ThreadAbortException]:
{System.Threading.ThreadAbortException}
System.Object: {System.Threading.ThreadAbortException}
_COMPlusExceptionCode: -532459699
_className: "System.Threading.ThreadAbortException"
_exceptionMethod: {System.Reflection.RuntimeMethodInfo}
_exceptionMethodString: null
_message: "Thread was being aborted."
_innerException: null
_helpURL: null
_stackTrace: {System.Array}
_stackTraceString: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
_remoteStackTraceString: null
_remoteStackIndex: 0
_HResult: -2146233040
_source: "mscorlib"
_xptrs: 0
_xcode: -532459699
Message: "Thread was being aborted."
InnerException: null
TargetSite: {System.Reflection.RuntimeMethodInfo}
StackTrace: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm)
at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in
c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
HelpLink: ""
Source: "mscorlib"
HResult: -2146233040 5 6741
from the MSDN site: http://msdn.microsoft.com/library/de...sferTopic2.asp
"Transfer calls End which raises a ThreadAbortException exception upon
completion."
It can be ignored.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in
message news:Or**************@TK2MSFTNGP12.phx.gbl... Hi,
If I put a try catch block for Server.Transfer call. It will catch a System.Threading.ThreadAbortException exception like this. However, it transfer the page to the correct page. Why did this exception occur?
Thanks. ------------------------------------ {"Thread was being aborted." }
[System.Threading.ThreadAbortException]: {System.Threading.ThreadAbortException}
System.Object: {System.Threading.ThreadAbortException}
_COMPlusExceptionCode: -532459699
_className: "System.Threading.ThreadAbortException"
_exceptionMethod: {System.Reflection.RuntimeMethodInfo}
_exceptionMethodString: null
_message: "Thread was being aborted."
_innerException: null
_helpURL: null
_stackTrace: {System.Array}
_stackTraceString: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm) at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
_remoteStackTraceString: null
_remoteStackIndex: 0
_HResult: -2146233040
_source: "mscorlib"
_xptrs: 0
_xcode: -532459699
Message: "Thread was being aborted."
InnerException: null
TargetSite: {System.Reflection.RuntimeMethodInfo}
StackTrace: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm) at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
HelpLink: ""
Source: "mscorlib"
HResult: -2146233040
from the MSDN site: http://msdn.microsoft.com/library/de...sferTopic2.asp
"Transfer calls End which raises a ThreadAbortException exception upon
completion."
It can be ignored.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in
message news:Or**************@TK2MSFTNGP12.phx.gbl... Hi,
If I put a try catch block for Server.Transfer call. It will catch a System.Threading.ThreadAbortException exception like this. However, it transfer the page to the correct page. Why did this exception occur?
Thanks. ------------------------------------ {"Thread was being aborted." }
[System.Threading.ThreadAbortException]: {System.Threading.ThreadAbortException}
System.Object: {System.Threading.ThreadAbortException}
_COMPlusExceptionCode: -532459699
_className: "System.Threading.ThreadAbortException"
_exceptionMethod: {System.Reflection.RuntimeMethodInfo}
_exceptionMethodString: null
_message: "Thread was being aborted."
_innerException: null
_helpURL: null
_stackTrace: {System.Array}
_stackTraceString: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm) at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
_remoteStackTraceString: null
_remoteStackIndex: 0
_HResult: -2146233040
_source: "mscorlib"
_xptrs: 0
_xcode: -532459699
Message: "Thread was being aborted."
InnerException: null
TargetSite: {System.Reflection.RuntimeMethodInfo}
StackTrace: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm) at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
HelpLink: ""
Source: "mscorlib"
HResult: -2146233040
Thanks for the info. But what is the purpose of raising this exception?
"Tammy" <ta***@hotmail.com> wrote in message
news:uj**************@TK2MSFTNGP10.phx.gbl... from the MSDN site: http://msdn.microsoft.com/library/de...sferTopic2.asp "Transfer calls End which raises a ThreadAbortException exception upon completion."
It can be ignored.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in message news:Or**************@TK2MSFTNGP12.phx.gbl... Hi,
If I put a try catch block for Server.Transfer call. It will catch a System.Threading.ThreadAbortException exception like this. However, it transfer the page to the correct page. Why did this exception occur?
Thanks. ------------------------------------ {"Thread was being aborted." }
[System.Threading.ThreadAbortException]: {System.Threading.ThreadAbortException}
System.Object: {System.Threading.ThreadAbortException}
_COMPlusExceptionCode: -532459699
_className: "System.Threading.ThreadAbortException"
_exceptionMethod: {System.Reflection.RuntimeMethodInfo}
_exceptionMethodString: null
_message: "Thread was being aborted."
_innerException: null
_helpURL: null
_stackTrace: {System.Array}
_stackTraceString: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
_remoteStackTraceString: null
_remoteStackIndex: 0
_HResult: -2146233040
_source: "mscorlib"
_xptrs: 0
_xcode: -532459699
Message: "Thread was being aborted."
InnerException: null
TargetSite: {System.Reflection.RuntimeMethodInfo}
StackTrace: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm) at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
HelpLink: ""
Source: "mscorlib"
HResult: -2146233040
Thanks for the info. But what is the purpose of raising this exception?
"Tammy" <ta***@hotmail.com> wrote in message
news:uj**************@TK2MSFTNGP10.phx.gbl... from the MSDN site: http://msdn.microsoft.com/library/de...sferTopic2.asp "Transfer calls End which raises a ThreadAbortException exception upon completion."
It can be ignored.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in message news:Or**************@TK2MSFTNGP12.phx.gbl... Hi,
If I put a try catch block for Server.Transfer call. It will catch a System.Threading.ThreadAbortException exception like this. However, it transfer the page to the correct page. Why did this exception occur?
Thanks. ------------------------------------ {"Thread was being aborted." }
[System.Threading.ThreadAbortException]: {System.Threading.ThreadAbortException}
System.Object: {System.Threading.ThreadAbortException}
_COMPlusExceptionCode: -532459699
_className: "System.Threading.ThreadAbortException"
_exceptionMethod: {System.Reflection.RuntimeMethodInfo}
_exceptionMethodString: null
_message: "Thread was being aborted."
_innerException: null
_helpURL: null
_stackTrace: {System.Array}
_stackTraceString: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
_remoteStackTraceString: null
_remoteStackIndex: 0
_HResult: -2146233040
_source: "mscorlib"
_xptrs: 0
_xcode: -532459699
Message: "Thread was being aborted."
InnerException: null
TargetSite: {System.Reflection.RuntimeMethodInfo}
StackTrace: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm) at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
HelpLink: ""
Source: "mscorlib"
HResult: -2146233040
So the rest of the current request isn't processed.
Personally, I think this is just a bad design on Microsoft's part, the whole
idea of pages posting data back to themselves would cause a lot of
unnecessary overhead if you just want to use Server.Transfer and not create
the whole input page again.
Jerry
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in
message news:eB**************@TK2MSFTNGP12.phx.gbl... Thanks for the info. But what is the purpose of raising this exception? "Tammy" <ta***@hotmail.com> wrote in message news:uj**************@TK2MSFTNGP10.phx.gbl... from the MSDN site: http://msdn.microsoft.com/library/de...sferTopic2.asp "Transfer calls End which raises a ThreadAbortException exception upon completion."
It can be ignored.
"Jan" <cjan@REMOVE_CAPS_AND_INVALIDbigfootsoftware.com.i nvalid> wrote in message news:Or**************@TK2MSFTNGP12.phx.gbl... Hi,
If I put a try catch block for Server.Transfer call. It will catch a System.Threading.ThreadAbortException exception like this. However, it transfer the page to the correct page. Why did this exception occur?
Thanks. ------------------------------------ {"Thread was being aborted." }
[System.Threading.ThreadAbortException]: {System.Threading.ThreadAbortException}
System.Object: {System.Threading.ThreadAbortException}
_COMPlusExceptionCode: -532459699
_className: "System.Threading.ThreadAbortException"
_exceptionMethod: {System.Reflection.RuntimeMethodInfo}
_exceptionMethodString: null
_message: "Thread was being aborted."
_innerException: null
_helpURL: null
_stackTrace: {System.Array}
_stackTraceString: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean preserveForm) at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
_remoteStackTraceString: null
_remoteStackIndex: 0
_HResult: -2146233040
_source: "mscorlib"
_xptrs: 0
_xcode: -532459699
Message: "Thread was being aborted."
InnerException: null
TargetSite: {System.Reflection.RuntimeMethodInfo}
StackTrace: " at System.Threading.Thread.AbortInternal()
at System.Threading.Thread.Abort(Object stateInfo)
at System.Web.HttpResponse.End()
at System.Web.HttpServerUtility.Transfer(String path, Boolean
preserveForm) at System.Web.HttpServerUtility.Transfer(String path)
at TestASPNET.Form1.btnTransfer_Click(Object sender, EventArgs e) in c:\inetpub\wwwroot\testaspnet\form1.aspx.cs:line 182"
HelpLink: ""
Source: "mscorlib"
HResult: -2146233040
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Tlink |
last post by:
I am using server.transfer from within vb.net, which is called from asp.net
I find that I can move to correct page the first time the server.transfer is
executed but all subsequent attempts cause a...
|
by: yma |
last post by:
Hi,
I put a .aspx page inside Server.Transfer() within a button. The page was
created for testing so it only has button and I did not add code. When I
click the button, it gave me an error...
|
by: Steve Buster |
last post by:
All right, I have read every forum, newsgroup etc about
this issue and no one seems to know how to fix it. I am
getting a "Server Application Unavailable" exception
running my .NET 1.1...
|
by: Julien C. |
last post by:
Hi all,
I have an "EditeItem.aspx" page which lets me edit properties of an "Item".
In the OnClick() event of my Save button, I do save Item changes to the
database and then I redirect the user...
|
by: Mark |
last post by:
Hello
I'm trying to use a Server.Transfer in a try-catch (I cannot put it outside the Try-Catch as it is nested deep within a component that is called in a try-catch loop)
The problem is that the...
|
by: Guadala Harry |
last post by:
I've been reading up on Server.Transfer as well as doing some testing, and
it appears to always raise the ThreadAbortException error. On one hand I've
read a bunch of promotional-type material...
|
by: Stan |
last post by:
This code has been working for a long time:
try
{
Server.Transfer ("Order.aspx");
}
catch (Exception ex)
{
///
}
|
by: Daniel Walzenbach |
last post by:
Hi,
I have a web application which sometimes throws an “out of memory”
exception. To get an idea what happens I traced some values using performance
monitor and got the following values (for...
|
by: Totto |
last post by:
Hi,
I'm doing a server.transfer from a click event of a button,
but an exception is raised with "Thread was being aborted"
Anyone know why?
Thanks Tor
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
| |