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;

returnActivityExecutionStatus.Closed;

}

catch

{

SendResponseResult =false;

returnActivityExecutionStatus.Closed;

}

}

Now when i use this custom and run the project , the exception is thrown :

Message : Thread was being Aborted .

what does this error meanTongue Tied?

and how can i solve it ?

thanks all

hema

[1385 byte] By [himo] at [2008-1-10]
# 1

This looks like ASP.Net specific exception. Using Response.Redirect("...", false) should resolve it. You can get more information on ASP.Net forum at http://forums.asp.net/.

AndreiRomanenko-MSFT at 2007-10-3 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...
# 2

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;

}

himo at 2007-10-3 > top of Msdn Tech,Software Development for Windows Vista,Windows Workflow Foundation...

Software Development for Windows Vista

Site Classified