473,379 Members | 1,032 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Server.Execute generates "Thread was being aborted"

Hi,

Long story short, we use "Server.Execute" to grab the output from an
ASPX page ...

Server.Execute("page.aspx", textWriter);

We've noticed that intermittantly, we get a "Thread was being aborted"
error when this method is called.

Anyone any ideas where to start looking?
Is this likely to be caused by a problem in the "page.aspx"?
Thanks for any help
Meil
Oct 11 '08 #1
5 2815
Possibly, it's difficult to say without seeing code.

--
Regards,
Alvin Bruney

Want a free copy of VS 2008 w/ MSDN premium subscription?
Details at http://msmvps.com/blogs/alvin/Default.aspx

Auther Plug
OWC Blackbook now on download at www.lulu.com/owc

"Neil" <gi*******@gmail.comwrote in message
news:e4**********************************@p59g2000 hsd.googlegroups.com...
Hi,

Long story short, we use "Server.Execute" to grab the output from an
ASPX page ...

Server.Execute("page.aspx", textWriter);

We've noticed that intermittantly, we get a "Thread was being aborted"
error when this method is called.

Anyone any ideas where to start looking?
Is this likely to be caused by a problem in the "page.aspx"?
Thanks for any help
Meil
Oct 11 '08 #2
most likely the page is doing a redirect, which will cause this error.

-- bruce (sqlwork.com)

Neil wrote:
Hi,

Long story short, we use "Server.Execute" to grab the output from an
ASPX page ...

Server.Execute("page.aspx", textWriter);

We've noticed that intermittantly, we get a "Thread was being aborted"
error when this method is called.

Anyone any ideas where to start looking?
Is this likely to be caused by a problem in the "page.aspx"?
Thanks for any help
Meil
Oct 11 '08 #3
My guess would be that page.aspx makes a call to Response.End or
Response.Redirect

George.

"Neil" <gi*******@gmail.comwrote in message
news:e4**********************************@p59g2000 hsd.googlegroups.com...
Hi,

Long story short, we use "Server.Execute" to grab the output from an
ASPX page ...

Server.Execute("page.aspx", textWriter);

We've noticed that intermittantly, we get a "Thread was being aborted"
error when this method is called.

Anyone any ideas where to start looking?
Is this likely to be caused by a problem in the "page.aspx"?
Thanks for any help
Meil
Oct 11 '08 #4
I've a stack trace from catching the exception when "Server.Execute"
is called:

at System.Web.HttpContext.InvokeCancellableCallback(W aitCallback
callback, Object state)
at System.Web.UI.Page.AsyncPageBeginProcessRequest(Ht tpContext
context, AsyncCallback callback, Object extraData)
at ASP.range_rx_index_aspx.BeginProcessRequest(HttpCo ntext context,
AsyncCallback cb, Object data)
at System.Web.HttpServerUtility.ExecuteInternal(IHttp Handler
handler, TextWriter writer, Boolean preserveForm, Boolean
setPreviousPage, VirtualPath path, VirtualPath filePath, String
physPath, Exception error, String queryStringOverride)
at System.Web.HttpServerUtility.Execute(String path, TextWriter
writer, Boolean preserveForm)
at System.Web.HttpServerUtility.Execute(String path, TextWriter
writer)
at HttpProxy.ExecuteLocal(String url, Dictionary`2
queryStringVariables, Boolean keepOriginalVariables, Boolean cachable)
at HttpProxy.ExecuteLocal(String url, Boolean cachable)
at RetrieveContent.CallHttpProxy()
at RetrieveContent.RefreshContent()
at ASP.range_index_aspx.RenderContent(Boolean fromHistory)

I've looked at the page in question, "range_rx_index_aspx", but
haven't found any obvious "Response.Redirect" or "Response.End".
Anyone any advice on how to track this one down?

Cheers
Neil
Oct 12 '08 #5
On 12 Oct, 16:55, Neil <gibbon...@gmail.comwrote:
I've a stack trace from catching the exception when "Server.Execute"
is called:

* at System.Web.HttpContext.InvokeCancellableCallback(W aitCallback
callback, Object state)
* at System.Web.UI.Page.AsyncPageBeginProcessRequest(Ht tpContext
context, AsyncCallback callback, Object extraData)
* at ASP.range_rx_index_aspx.BeginProcessRequest(HttpCo ntext context,
AsyncCallback cb, Object data)
* at System.Web.HttpServerUtility.ExecuteInternal(IHttp Handler
handler, TextWriter writer, Boolean preserveForm, Boolean
setPreviousPage, VirtualPath path, VirtualPath filePath, String
physPath, Exception error, String queryStringOverride)
* at System.Web.HttpServerUtility.Execute(String path, TextWriter
writer, Boolean preserveForm)
* at System.Web.HttpServerUtility.Execute(String path, TextWriter
writer)
* at HttpProxy.ExecuteLocal(String url, Dictionary`2
queryStringVariables, Boolean keepOriginalVariables, Boolean cachable)
* at HttpProxy.ExecuteLocal(String url, Boolean cachable)
* at RetrieveContent.CallHttpProxy()
* at RetrieveContent.RefreshContent()
* at ASP.range_index_aspx.RenderContent(Boolean fromHistory)

I've looked at the page in question, "range_rx_index_aspx", but
haven't found any obvious "Response.Redirect" or "Response.End".
Anyone any advice on how to track this one down?

Cheers

Neil
Noticed that the page being executed is missing a image, which
generates a 404, which is being handled by our custom 404 page. Could
this be the cause of the aborted thread?

Cheers
Neil
Oct 12 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Elliot M. Rodriguez | last post by:
A few of our customers cannot access one of the pages on our vb.net asp.net site. The problems are limited to only a few people, but these people have the problem regularly. The page in question...
3
by: Stephen Miller | last post by:
I have an ASP.Net application that sends a NetworkStream to a .Net Service, which has a TcpListener listening on a port for the ASP.Net client. When it receives a request it creates a new thread...
5
by: Alan Silver | last post by:
Hello, I have a page that is supposed to do some checking, and if OK, set a session variable before redirecting to another page. The following code is a simplified version, I have hard-coded the...
4
by: hitendra15 | last post by:
Hi following is the code which sends file to the browser means user can download file, but the code generates error message Thread Being Aborted., will any one put their thoughts protected void...
4
by: R.A.M. | last post by:
Hello, Could you help me plase? I have an ASP.NET page with "Search" button; when button is clicked Search_Click is called; here's the code: protected void Search_Click(object sender, EventArgs...
1
by: R.A.M. | last post by:
Hello, Could you help me plase? I am describing my problem second time because I haven't got a solution. I have an ASP.NET page with "Search" button; when button is clicked Search_Click is...
4
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
2
by: =?Utf-8?B?RGFuZGFuIFpoYW5n?= | last post by:
I used Response.Redirect("other.aspx") in my application. This will arise the exception "Thread is being aborted". How can i get rid of this exception? BTW, i can not use the...
1
by: active | last post by:
When I run an app outside of the IDE I get the exception Thread was being aborted Does that error mean something to you? Any idea what might be causing it? ++++++++++++++++
1
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.