473,320 Members | 1,950 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,320 software developers and data experts.

strange Server.Transfer behavior

I have a simple pair of ASP.NET pages, main.aspx and login.aspx. Main
checks if there is an identity in the Session context, and if not does
a Server.Transfer to login.aspx. So far, so good. Login does exactly
that, and on success does a Server.Transfer back to main.aspx. This has
been working fine with both IE and Firefox. Within that past couple of
weeks, all of a sudden running through this logic with IE results in:

Internet Explorer cannot open the Internet site
http://localhost/app/Login.aspx.

Operation aborted

If I use Firefox, everything still works just fine. I set a breakpoint
in my C# Page_Load function and, interestingly, it gets called,
executes, and returns normally for the IE case.

I presume this means that something in the page sent to IE is causeing
IE to wack out?

Anyone have suggestions on how I find the offending content?

I am running IE 6.0.2900.2180.xpsp_sp2_rtm.050803-2158, and Windows XP
SP2. By the way, I have a colleague testing this software and he
experiences the same problem, so its in all likelihood not unique to
the specific software versions on my machine.

Thanks,
Marc

Nov 19 '05 #1
3 1362
You are getting a ThreadAbortException, see:
http://support.microsoft.com/default...;en-us;Q312629

Try wrapping your call in try-catch block:

try
{
Server.Transfer("test.aspx');
}
catch (System.Threading.ThreadAbortException)
{
// we except this
}

Nov 19 '05 #2

David Barkol wrote:
You are getting a ThreadAbortException, see:
http://support.microsoft.com/default...;en-us;Q312629

Try wrapping your call in try-catch block:

try
{
Server.Transfer("test.aspx');
}
catch (System.Threading.ThreadAbortException)
{
// we except this
}

You could also call Server.Execute, but read the knowledge base article
first before going any further.

David Barkol
www.neudesic.com

Nov 19 '05 #3
Added the try/catch and found I am indeed getting the
ThreadAbortException. But, even with this code in place I am still
getting the same error.

I had already tried Server.Execute, though I retried it again just now
with the exception handling in place. I still get the same error.

Any more ideas?

Nov 19 '05 #4

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

Similar topics

2
by: Ryu | last post by:
Hi, it seems that Server.Transfer only preserve the url only for 1 hop. For example I have A.aspx, B.aspx and C.aspx. If i do a server.transfer at A.aspx to B.aspx Server.Transfer("B.aspx") the...
11
by: Alexander Bosch | last post by:
Hi, I'm having a problem similar to the one that's stated in this KB http://support.microsoft.com/default.aspx?scid=kb;en-us;839521 When I'm posting a page to itself with the bool value as true it...
4
by: Keith Patrick | last post by:
I have an app where a Shockwave splash animation starts off my app and then sets its parent iframe's src to the value of a default page "BasicReports". BasicReports has a link to another report...
0
by: | last post by:
Hi I am using a server.transfer trying to prevent the url of the loaded page being displayed. However, I found a strange behavior Here is the scenario step 1. page1 server.transfer to page 2...
2
by: thomson | last post by:
Hi all, I did a Server.Transfer from a page to another page, but surprisingly i could only view the quarter of the page , Only that much is rendered , the rest is the first page itself What...
4
by: Stan | last post by:
This code has been working for a long time: try { Server.Transfer ("Order.aspx"); } catch (Exception ex) { /// }
3
by: Bill | last post by:
I'm using the POST method to submit a simple form html page with yes/no and checkbox fields to an asp response page which stores the values in a new dim string, then uses it to build a new table...
2
by: Antonio | last post by:
Good morning, everyone. Here is the strange behavior: I have a datagrid (dgPIs) with paging enabled. When I click to view any page in the grid, it runs the private void lnkIPReg method,...
0
by: jjblanco | last post by:
Hi, I am experiencing a behavior I can´t understand while building an ASP.NET 1.1 application. I have two pages, Web1.aspx and Web2.aspx. On a button click event of Web1.aspx, I do a...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.