From a65ca205de745ab16c4c11d201a39fbc4e378c4e 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 093b942a33..62bc7d8f9b 100644 --- a/src/Umbraco.Web/Routing/PublishedContentRequest.cs +++ b/src/Umbraco.Web/Routing/PublishedContentRequest.cs @@ -77,6 +77,7 @@ namespace Umbraco.Web.Routing if (this.Is404) { httpContext.Response.StatusCode = 404; + httpContext.Response.TrySkipIisCustomErrors = true; if (!this.HasNode) { @@ -135,6 +136,7 @@ namespace Umbraco.Web.Routing // here .Is404 _has_ to be true httpContext.Response.StatusCode = 404; + httpContext.Response.TrySkipIisCustomErrors = true; if (!this.HasNode) {