ErrorCode: -2147024846
Source: "Microsoft.Web.Administration"
Code: (s is the location/IIS7 site name)
Configuration config = mgr.GetWebConfiguration(s);
Configuration appHostConfig = mgr.GetApplicationHostConfiguration();
if (chbSetting1.Checked)
{
ConfigurationSection section = appHostConfig.GetSection("system.web/globalization", s);
section.OverrideMode = OverrideMode.Allow;
mgr.CommitChanges();
}
Is there another way to allow the override mode of a section?