Huge problem. ConfigurationManager
i'm using visual studio 2005
first i imported the Configuration by "using System.Configuration;"
then i created the App.config file
then when i write this line in my code
NameValueCollection AppSettings = ConfigurationManager.AppSettings;
it gives me the error "the name ConfigurationManager does not exist in the curent context "
please help me with this. i'm bit stucked now.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Albertto Lie55 reputationPosted Jun 16, 2009, 10:36 PM EDT
maybe this will help..
protected System.Configuration.AppSettingsReader configurationAppSettings = new System.Configuration.AppSettingsReader(); //then in ur function to use : SqlConnection sCon = new SqlConnection(((string)(configurationAppSettings.GetValue("sqlConnectionString", typeof(string)))));Regards,
albertto