I have implemented a custom section in my app.config file and am accessing it using ConfigurationSection and ConfigurationElement. When the application starts all data is retrieved correctly. If I manually change the values in the app.config file then my application later calls ConfigurationManager.RefreshSection I still receive the original values not the updated ones.
Am I misunderstanding how RefreshSection functions?
<configSections>
<section name="OrderProcessorSettings" type="OrderProcessor.Configuration.OrderProcessor.OrderProcessorConfigHandler, RDC.BL.OrderProcessor" />
</configSections>
<OrderProcessorSettings>
<OrderBlock OrderCheckInterval = "1000" />
</OrderProcessorSettings>
System.Configuration.ConfigurationManager.RefreshSection("OrderProcessorSettings");
OrderProcessorConfigHandler config = (OrderProcessorConfigHandler)System.Configuration.ConfigurationManager.GetSection("OrderProcessorSettings");
this.OrderCheckInterval = config.OrderBlock.OrderCheckInterval;