1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Bugs & Issues / Creating custom ConfigSection / Setting issues

Creating custom ConfigSection / Setting issues

2 posts, 1 answered
  1. Sean
    Sean avatar
    0 posts
    Registered:
    17 Aug 2017
    17 Aug
    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
    Link to this post

    Datacenter issue.

     

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

     

    Stupid IIS issue.

2 posts, 1 answered