I’m using Jeff Atwood’s Last Configuration Section Handler You’ll Ever Need, but it only seems to work for the default app.config file. If I wanted to separate certain settings into another file, the deserializing doesn’t work, since ConfigurationManager.GetSection only reads from the application’s default app.config file. Is it possible to either change path of the default config file or point ConfigurationManager to a second config file?
I’m using Jeff Atwood’s Last Configuration Section Handler You’ll Ever Need , but it
Share
yes, just replace the section in the default config file with an xml element of the same name that has a configSource=” attribute that points to another file…
… In yr App.config or web.config…
And then the common xml;Configurator class