I got a following error when
Response.End();
is execute.
Its look like a threading error
but unable to handle it.Any body know about the error and how to fix it?.I am using VS2008
.Thanks.
I got a following error when
Response.End();
is execute.
Its look like a threading error
but unable to handle it.Any body know about the error and how to fix it?.I am using VS2008
.Thanks.
Why do you need to explicitly call Response.End()? You can call HttpContext.Current.ApplicationInstance.CompleteRequest to get around this issue, but you may want to consider refactoring your code to not prematurely end the response.
That seems to be expected behavior. You are telling the server to stop processing the page.
http://msdn.microsoft.com/en-us/library/system.web.httpresponse.end.aspx