I have the following connection string declared in my app.config file:
First, you must add the appSettings tag
Second, add a reference to System.Configuration to your project and insert a using System.Configuration in the source.
Then, you can use ConfigurationManager.AppSettings to access your config setting:
string result = ConfigurationSettings.AppSettings["SqlConnectionString"];