RefreshSection refreshes so that the next time the configuration is read it
will read from the disk instead of Cache. However, you still need to read it:
The GetSection method accesses run-time configuration information that it
cannot change. To change the configuration, you use the GetSection method on
the configuration file you obtain by using one of the following Open methods:
OpenExeConfiguration
OpenMachineConfiguration
OpenMappedExeConfiguration
OpenMappedExeConfiguration
--
--Peter
http://www.eggheadcafe.com
unBlog:
http://petesbloggerama.blogspot.com
BlogMetaFinder:
http://www.blogmetafinder.com
"roundcrisis" wrote:
> HI there:
>
>
> I have to modify the value of an item in appSettings
>
> ConfigurationManager.AppSettings["somekey"] = somevalue;
> ConfigurationManager.RefreshSection("appSettings");
>
> however the value is nto refreshed, any ideas?
>
>