U4-1441 - fix issue with IIS taking over custom errors

This commit is contained in:
Stephan
2013-02-05 16:29:10 -01:00
parent da7fea47c6
commit a65ca205de

View File

@@ -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)
{