Creating custom ConfigSection / Setting issues

Posted by Community Admin on 04-Aug-2018 13:42

Creating custom ConfigSection / Setting issues

All Replies

Posted by Community Admin on 17-Aug-2017 00:00

I have followed what I think is the documentation to create a setting. A simple class, and a boolean setting. It creates a .config file and I can fetch the boolean, update it, etc. And I can see it updating the .config. On local. When I go to DEV/TEST with the 3 files as a changeset and build I don't even see the config section in backend admin->settings->advanced.

 

Any help?

global.asax-

Config.RegisterSection<SystemMaintenanceConfig>();

 

SystemMaintenanceConfig.cs-

public class SystemMaintenanceConfig : ConfigSection

[ConfigurationProperty("Maintenance", DefaultValue = false, IsRequired = true)]
public bool Maintenance

get

return (bool)this["Maintenance"];

set

this["Maintenance"] = value;


Posted by Community Admin on 17-Aug-2017 00:00

Datacenter issue.

 

I am able to create my own settings and config now. 

 

Stupid IIS issue.

This thread is closed