I made some tests in a console application and all is working properly.
After calling:
ConfigurationManager.RefreshSection("appSettings");
I'm able to access settings with ConfigurationManager.AppSettings and I receive the new value.
Unfortunately using a site seems not working and I continue to read the old values.
Of course, I use an ExternalWeb.config to avoid that the site will restart changing the Web.config:
<appSettings file="ExternalWeb.config">
Anyway is the same configuration that I made using the App.config and in that case worked.
Is possible to use ConfigurationManager.RefreshSection with a web config? If yes, where could be the problem?
I'm using .Net Framework 4.8.