Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
DotNet
acad.assignment.mngr
academic
adonet
aspnet
aspnet.announcements
aspnet.build.controls
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
clr
compactframework
component_services
datatools
distributed_apps
drawing
faqs
framework
framework.wmi
general
internationalization
interop
languages.csharp
languages.jscript
languages.vb
languages.vb.controls
languages.vb.data
languages.vb.upgrade
languages.vc
languages.vc.libraries
myservices
odbcnet
performance
remoting
scripting
sdk
security
setup
vjsharp
vsa
webservi.enhancements
webservices
windowsforms
windowsforms.controls
winforms.databinding
winforms.designtime
xml
  
 
date: Sat, 17 Dec 2005 16:18:42 -0600,    group: microsoft.public.dotnet.framework.aspnet.announcements        back       


ASP.NET 2.0 - NEW BUG!   
Did you know that every time you do Response.Redirect, it thrown an 
exception

System.Threading.ThreadAbortException: Thread was being aborted.
   at System.Threading.Thread.AbortInternal()
   at System.Threading.Thread.Abort(Object stateInfo)
   at System.Web.HttpResponse.End()
   at System.Web.HttpResponse.Redirect(String url, Boolean endResponse)
   at System.Web.HttpResponse.Redirect(String url)
   at Default2.imgButton_Click(Object sender, EventArgs e)

You just don't see it because your Response.Redirect is not in try/catch 
block.  Try putting your Response.Redirect in try/catch block and outputting 
your results (caught exception) into a file and you will see the problem.

If anyone has an explanation, more than welcome to share.

Thanks,
-Amelyan
date: Sat, 17 Dec 2005 16:18:42 -0600   author:   Amelyan

Re: ASP.NET 2.0 - NEW BUG!   
Amelyan wrote:

> Did you know that every time you do Response.Redirect, it thrown an
> exception
> 
> System.Threading.ThreadAbortException: Thread was being aborted.
>   at System.Threading.Thread.AbortInternal()
>   at System.Threading.Thread.Abort(Object stateInfo)
>   at System.Web.HttpResponse.End()
>   at System.Web.HttpResponse.Redirect(String url, Boolean endResponse)
>   at System.Web.HttpResponse.Redirect(String url)
>   at Default2.imgButton_Click(Object sender, EventArgs e)
> 
> You just don't see it because your Response.Redirect is not in
> try/catch block.  Try putting your Response.Redirect in try/catch
> block and outputting your results (caught exception) into a file and
> you will see the problem.
> 
> If anyone has an explanation, more than welcome to share.

http://support.microsoft.com/default.aspx?scid=kb;en-us;312629

Cheers,
-- 
http://www.joergjooss.de
mailto:news-reply@joergjooss.de
date: Sun, 18 Dec 2005 04:55:00 -0800   author:   Joerg Jooss

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us