Hi,
This is the c# code which retrieves the two names from the app.config file.

private void GetSettings()
{
System.Collections.Specialized.NameValueCollection colNameVal = null;
colNameVal = System.Configuration.ConfigurationSettings.AppSettings;
strServer = colNameVal["ServerName"];
strDatabase = colNameVal["DatabaseName"];
}


the xml in app.config:
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="ServerName" value="svr07" />
<add key="DatabaseName" value="TradarBe" />
</appSettings>
</configuration>

Do you know why the strServer and the strDatabase variables in the c# code are not returning the correct names?
Thanks