4b0
4b0

Reputation: 22323

Error when execute Response.End()

I got a following error when
Response.End();
is execute.
enter image description here

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

Answers (2)

Mufaka
Mufaka

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

Stefan H
Stefan H

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

Related Questions