Maybe I am missing something really obvious but I am at a loss on this.
1.Went into my 2.0 win app and got to the properties page (vs2005).
2.Added a few string settings on the settings tab (application scope).
3. this results in the following xml bit in the app.config file (which i spawned earlier):
4.In code I want to pull this value out using:
The string is always null. i can never get the value. I have a ref to System.Configuration and I have the using. What am I missing here?
1.Went into my 2.0 win app and got to the properties page (vs2005).
2.Added a few string settings on the settings tab (application scope).
3. this results in the following xml bit in the app.config file (which i spawned earlier):
Code:
<applicationSettings>
<Myapp.Properties.Settings>
<setting name="LogOutputFilePath" serializeAs="String">
<value>C:\\Temp\\ErrorLog\\</value>
</setting>
</Myapp.Properties.Settings>
</applicationSettings>
4.In code I want to pull this value out using:
Code:
string path = ConfigurationManager.AppSettings.Get("LogOutputFilePath");
The string is always null. i can never get the value. I have a ref to System.Configuration and I have the using. What am I missing here?