Blog Home  Home Feed your aggregator (RSS 2.0)  
Mayur's Blog - Property evaluation failed or ThreadAbortion exception while using response.redirect
 
# Monday, April 27, 2009

Use overloaded method response.redirect("path",false) to avoid above mentioned error.

Cause of this error: response.redirect internally uses response.end. However, when you call response.redirect, it also shifts the execution to Applicaton_endRequest event and this does not allow the code following the response.end to be executed. Therefore, it reaises exception.

When you specify response.redirect("path", false) you explicity tell the run time to execute the code following the response.end menthod.

This work around has worked for me while using response.redirect in a user defined class which modifies the XML document.

For more info refer this page:

http://support.microsoft.com/kb/312629/EN-US/ 

Monday, April 27, 2009 7:00:30 AM UTC  #       | 
Copyright © 2022 Mayur Bharodia. All rights reserved.
DasBlog 'Portal' theme by Johnny Hughes.
Pick a theme: