Added errorMode=Custom to httpErrors section of IIS 7 per this thread:
181686e8
-8257-48eb-ab33-72f54b60a2c8
This commit is contained in:
parent
efb2308515
commit
c08041a384
1 changed files with 4 additions and 0 deletions
|
@ -97,6 +97,10 @@ namespace WebsitePanel.Providers.Web.Iis.WebObjects
|
||||||
var config = srvman.GetWebConfiguration(virtualDir.FullQualifiedPath);
|
var config = srvman.GetWebConfiguration(virtualDir.FullQualifiedPath);
|
||||||
//
|
//
|
||||||
var section = config.GetSection(Constants.HttpErrorsSection);
|
var section = config.GetSection(Constants.HttpErrorsSection);
|
||||||
|
|
||||||
|
// enable custom errors
|
||||||
|
section.SetAttributeValue("errorMode", "Custom");
|
||||||
|
|
||||||
//
|
//
|
||||||
var errorsCollection = section.GetCollection();
|
var errorsCollection = section.GetCollection();
|
||||||
//
|
//
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue