Error in my WorkFlow (Response.Redirect)
Hello dear ,
I create a custom activity : this custom Send response to a specific Url
protectedoverrideActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
{
try
{
HttpContext.Current.Response.Redirect(ReceiveURL +"?Response="
+ Response);SendResponseResult =
true
;return
ActivityExecutionStatus.Closed;}
catch
{
SendResponseResult =
false
;return
ActivityExecutionStatus.Closed;}
}
Now when i use this custom and run the project , the exception is thrown :
Message : Thread was being Aborted .
what does this error mean
?
and how can i solve it ?
thanks all
hema
[1385 byte] By [
himo] at [2008-1-10]
Hello dear ,
Thanks for ur reply and it is working .
Please clould I ask wht this exception happened ?
and why wehn i add "False " in the second parameter it is working .....what does it mean?
and i have another Question :
HttpContext
.Current.Response.Redirect(ReceiveURL + "?Response="
+ Response,false
);
u see in this line i send a query string .....could i check if this response is send to this Recieved Url or not?
I use this code to check but i dont know if it is correct or not :
try
{
HttpContext.Current.Response.Redirect(ReceiveURL + "?Response="
+ Response,false
);SendResponseResult =
true
;return
ActivityExecutionStatus.Closed;}
catch
{
return
ActivityExecutionStatus.Closed;}