L
Lloyd Dupont
for this config file:
//--------
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Lion's Port"
value="1971"/>
</appSettings>
</configuration>
//--------
the following call work:
string sPort = ConfigurationSettings.AppSettings.Get("Lion's Port");
but this one fail:
object port = new AppSettingsReader().GetValue("Lion's Port", typeof(int));
with the error: the key 'Lion's Port' doesn't exist in the appSettings
section
what's wrong ?
//--------
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="Lion's Port"
value="1971"/>
</appSettings>
</configuration>
//--------
the following call work:
string sPort = ConfigurationSettings.AppSettings.Get("Lion's Port");
but this one fail:
object port = new AppSettingsReader().GetValue("Lion's Port", typeof(int));
with the error: the key 'Lion's Port' doesn't exist in the appSettings
section
what's wrong ?