protected override void OnLoad(EventArgs e) { var httpContext = new HttpContextWrapper(HttpContext.Current); httpContext.HandleFileNotFound(HttpRuntime.UsingIntegratedPipeline); base.OnLoad(e); }