some of my web applications write to the disk on the web server. The paths change depending on location, prod and dev, etc. I used to store the paths in web.config under configuration / appSettings like:
<add key='PDFOutPutPath' value='C:\Temporary_Web_Files\PDFTempDocs\'/>
And then get them like this:
path = ConfigurationSettings.AppSettings('PDFOutPutPath')
Now in .Net 4, I get compile warnings about this being depreciated, so I found some instructions telling me to add a configuration file, move my values to it like so:
<configuration>
<appSetings>
<add key='PDFOutPutPath' value='C:\Temporary_Web_Files\PDFTempDocs\'/>
</appSettings>
</configuration>
and use configuration manager like so:
ConfigurationManager.AppSettings( 'PDFOutPutPath' )
However, this does not work. I'm not sure if I'm supposed to be using the configuration manager for this or not - If not, where do you put stuff like this? I have System.Configuration referenced, so this in not my issue.