HttpContext throws HttpException

前端 未结 7 634
无人共我
无人共我 2020-12-05 18:30

I have written a custom http handler. I have done this by writing a class which implements the IHttphandler.

Inside that class I have code like this,



        
7条回答
  •  一向
    一向 (楼主)
    2020-12-05 19:23

    I was into similar issues, got this article which explains that Response.End() should be avoid ed and instead suggests to use CompleteRequest() method. MSDN documentation has also been updated with this information. I hope this helps someone.

    http://blogs.msdn.com/b/aspnetue/archive/2010/05/25/response-end-response-close-and-how-customer-feedback-helps-us-improve-msdn-documentation.aspx

提交回复
热议问题