void context_PostResolveRequestCache(object sender, EventArgs e) { // TODO: document this, provide workaround for < .NET SP2? HttpContext context = HttpContext.Current; if (context.Request.Path.IndexOf("SlickUpload.axd", StringComparison.InvariantCultureIgnoreCase) != -1) { TryRemapHandler(context, SlickUploadHandlerFactory.GetHandler(context)); } }
private void TryRemapHandler(HttpContext context, IHttpHandler iHttpHandler) { try { context.RemapHandler(SlickUploadHandlerFactory.GetHandler(context)); } catch { // TODO: error somewhere? } }