Each project I work on seems to do configuration in a completely diffrent way to the previous one. The current website I'm working on uses the Settings class which is deserialised from the app.config file. It means we've got settings all over the place as there is one of these for every library project in the app. Now I'm going to compicate things further because it would appear that I can't add anything in here other than simple string values and connection strings - I want to add an SQLCacheDependency section but this mechanism doesn't seem to handle it at all so I'll stick it in the web.config and get at it from the System.Configuration.ConfigurationManager.OpenExeC onfiguration. I'm thinking that there must be a way using this settings class to handle more complex settings but I'll be buggered if I can find anything out there.
I preferred the concept of just having one config file for the host process & all dependencies accessing it from some shared custom config class.
I preferred the concept of just having one config file for the host process & all dependencies accessing it from some shared custom config class.

Comment