Application Settings are not functioning
Posted on 2008-06-16
I have an application that has been using User Configuration settings that were defined in the Designer/Settings tab. The application reads them fine. I recently added some Application settings by directly editing the app.config XML file, using lines simialr to this:
<add key="EngrNamesPath" value="\\\\Netsys\\usr\\engr\\progData\\engr_with_username_tab.txt" />
Since then, the application doesn't read the new AppSettings. It still reads the User settings, just not the App settings. (using System.Configuration; is declared). When the application encounters:
string engrNamesPath = ConfigurationSettings.AppSettings["EngrNamesPath"];
it returns "null"
I am stumped.