From c8e08b8ef8a975204f56d2f6aec1a9755109e756 Mon Sep 17 00:00:00 2001 From: Stephan Date: Tue, 5 Feb 2013 16:29:10 -0100 Subject: [PATCH] U4-1441 - fix issue with IIS taking over custom errors --- src/Umbraco.Web/Routing/PublishedContentRequest.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Umbraco.Web/Routing/PublishedContentRequest.cs b/src/Umbraco.Web/Routing/PublishedContentRequest.cs index 2f15e6e107..07a2896300 100644 --- a/src/Umbraco.Web/Routing/PublishedContentRequest.cs +++ b/src/Umbraco.Web/Routing/PublishedContentRequest.cs @@ -78,6 +78,7 @@ namespace Umbraco.Web.Routing if (this.Is404) { httpContext.Response.StatusCode = 404; + httpContext.Response.TrySkipIisCustomErrors = true; if (!this.HasNode) { @@ -136,6 +137,7 @@ namespace Umbraco.Web.Routing // here .Is404 _has_ to be true httpContext.Response.StatusCode = 404; + httpContext.Response.TrySkipIisCustomErrors = true; if (!this.HasNode) {