I have a requirement to read few key values added in appsettings. For that i added app.config and added key value pair:
Now I am trying to read these key values. I tried
password = ConfigurationSettings.AppSettings["UserPwd"]
this is returning null in password.
I also tried :
AppSettingsReader settingsReader =
string password = (string)settingsReader.GetValue("UserPwd", typeof(String));
This is also returning null.
Please help me, how to go ahead?
View Complete Post