469,953 Members | 2,392 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,953 developers. It's quick & easy.

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 1269
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 discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

11 posts views Thread by Alexander Bosch | last post: by
4 posts views Thread by Keith Patrick | last post: by
reply views Thread by | last post: by
2 posts views Thread by thomson | last post: by
4 posts views Thread by Stan | last post: by
2 posts views Thread by Antonio | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.