Added errorMode=Custom to httpErrors section of IIS 7 per this thread:

181686e8-8257-48eb-ab33-72f54b60a2c8
This commit is contained in:
feodor_fitsner 2012-08-27 18:06:58 -07:00
parent efb2308515
commit c08041a384

View file

@ -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();
//