diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/WebObjects/CustomHttpErrorsModuleService.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/WebObjects/CustomHttpErrorsModuleService.cs index de3a4c32..91946522 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/WebObjects/CustomHttpErrorsModuleService.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/WebObjects/CustomHttpErrorsModuleService.cs @@ -97,6 +97,10 @@ namespace WebsitePanel.Providers.Web.Iis.WebObjects var config = srvman.GetWebConfiguration(virtualDir.FullQualifiedPath); // var section = config.GetSection(Constants.HttpErrorsSection); + + // enable custom errors + section.SetAttributeValue("errorMode", "Custom"); + // var errorsCollection = section.GetCollection(); //