Reputation: 17773
The other day I came across an alternative way of accessing web.config configuration in some article. It allowed to:
modify web.config configuration at runtime like:
config.MySetting = "new value";
load web.config from another web application in the same IIS (I'm not sure about it)
But that solution slipped my mind :/ I remember that the article was titled (something like this): Way of using application configuration in web applications.
Could somebody came across that solution and could refresh my memory with a link ? :)
Upvotes: 1
Views: 711
Reputation: 54734
Was it System.Configuration.Configuration
?
Call WebConfigurationManager.OpenWebConfiguration
with a file name to get a Configuration
instance, which has its own AppSettings
collection.
Upvotes: 5