J
jason
i am coding a simple console application with Visual C# .NET in Visual
Studio .NET
my config file (myapp.exe.config) has the following appSettings
section:
<appSettings>
<add key="myKey" value="myValue" />
</appSettings>
my code (myapp.exe) uses the following to try to access those settings:
string sValue = ConfigurationSettings.AppSettings["myKey"];
Console.WriteLine(sValue);
the problem is that sValue remains null. it is not getting assigned the
appropriate value from the appSettings.
after reading other threads on this topic, i have confirmed that i am
using System.Configuration, as well as including RCDigest.exe.config as
an application configuration compontent for the solution.
any ideas what i might be doing wrong?
Studio .NET
my config file (myapp.exe.config) has the following appSettings
section:
<appSettings>
<add key="myKey" value="myValue" />
</appSettings>
my code (myapp.exe) uses the following to try to access those settings:
string sValue = ConfigurationSettings.AppSettings["myKey"];
Console.WriteLine(sValue);
the problem is that sValue remains null. it is not getting assigned the
appropriate value from the appSettings.
after reading other threads on this topic, i have confirmed that i am
using System.Configuration, as well as including RCDigest.exe.config as
an application configuration compontent for the solution.
any ideas what i might be doing wrong?