Reputation: 22323
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.
Upvotes: 0
Views: 944
Reputation: 3444
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.
Upvotes: 1
Reputation: 6683
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
Upvotes: 0