D
Derrick
I have a C# console app, MyApp, and am placing an application config file in
the same debug dir as MyApp.exe. I have named the file MyApp.config, and
MyApp.exe.config. I cannot read the <appSettings> entries in the file
though, I get null back for properties.
config file
<configuration>
<appSettings>
<add key="mySetting" value="hello_world" />
....
Code is:
string test = ConfigurationSettings.AppSettings["hello_world"];
Any ideas? test winds up null. I'm going off...
http://www.codeguru.com/Csharp/Csharp/cs_network/configurationfilesinis/print.php/c7987/
Thanks in advance!
Derrick
the same debug dir as MyApp.exe. I have named the file MyApp.config, and
MyApp.exe.config. I cannot read the <appSettings> entries in the file
though, I get null back for properties.
config file
<configuration>
<appSettings>
<add key="mySetting" value="hello_world" />
....
Code is:
string test = ConfigurationSettings.AppSettings["hello_world"];
Any ideas? test winds up null. I'm going off...
http://www.codeguru.com/Csharp/Csharp/cs_network/configurationfilesinis/print.php/c7987/
Thanks in advance!
Derrick