More in this section
Forums / Bugs & Issues / Creating custom ConfigSection / Setting issues

Creating custom ConfigSection / Setting issues

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 1 answered
  1. Sean
    Sean avatar
    0 posts
    Registered:
    17 Aug 2017
    17 Aug 2017
    Link to this post

    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;
    }
    }
    }

    Answered
  2. Sean
    Sean avatar
    0 posts
    Registered:
    17 Aug 2017
    17 Aug 2017
    Link to this post

    Datacenter issue.

     

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

     

    Stupid IIS issue.

2 posts, 1 answered