The problem is Response.Flush() before the redirect. Using HTTP, you get one response for one request. Your browser only requested the page once, and I suspect you are trying to respond twice:
Response.Flush(); //First Response Response.Redirect("Home.aspx"); //Second Response
Therefore, given this, Response.Flush() will solve your problem.
m.edmondson
source share