开发者

AppSettings external refresh

开发者 https://www.devze.com 2023-03-06 19:14 出处:网络
I have an external config file for my AppSettings, called ApplicationSettings.sgs. This file is then in turn, reference in the my web.config as an external file source:

I have an external config file for my AppSettings, called ApplicationSettings.sgs.

This file is then in turn, reference in the my web.config as an external file source:

<appSettings file="Assets\Settings\application.sgs" />

However, when making changes to application.sgs, and I refresh my page where the new value should be pulling through, I still get the old value.

I've ensured that I'm refreshing the section, using ConfigurationManager.RefreshSection("appSettings"); but this is also brings back the default value. Is开发者_开发问答 there something a miss in this solution?

Thanks,

Eric

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号