Server.transfer errors in .Net 2.0

F

Fred

Why do server.transfer statements in my app. always generate runtime errors
like this:

A first chance exception of type 'System.Threading.ThreadAbortException'
occurred in mscorlib.dll
An exception of type 'System.Threading.ThreadAbortException' occurred in
mscorlib.dll but was not handled in user code

Is it worth worrying about/fixing somehow? It didn't happen in 1.1
 
K

Karl Seguin

This should have been happening in 1.1. Server.Transfer does a
Response.End() which _always_ generates that error.

You can

(a) safely ignore the exception
(b) use Execute instead of Transfer
this.Execute(path, (TextWriter) null, preserveForm);

Not sure what side effects that might have though...but it should work.

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top