Quantcast
Channel: bundletransformer Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 698

Created Unassigned: Response.End() causes ThreadAbortExceptions [115]

$
0
0
The code in BundleTransformer.Core.HttpHandlers.AssetHandlerBase.ProcessRequest causes ThreadAbortExceptions on every request that's processed by the asset handler.

Instead of calling Response.End() and throwing an exception that gets rethrown at each catch block, the better way is to call [HttpApplication.CompleteRequest](https://msdn.microsoft.com/en-us/library/system.web.httpapplication.completerequest.aspx)

We have automated logging of unhandled exceptions in place, and it gets littered with ThreadAbortExceptions because of this (and other places that call Response.Redirect(..., true) and Response.Redirect(...) )

See also http://ardalis.com/use-httpapplication-completerequest-instead-of-response-end

Viewing all articles
Browse latest Browse all 698

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>