I am trying to get the section in my app.config file. I'm using ConfigurationManager.GetSection but always get a null value. Below is my code and app.config file.
Any ideas?
NameValueCollection nvc = (NameValueCollection)ConfigurationManager.GetSection("groupInfo/sectionInfo1");if (nvc != null){ for (int i = 0; i < nvc.Count; i++) { Console.WriteLine(nvc[i] + " = " + nvc.Keys[i]); }}
I did that after I sent you the pic. So in MyConsole it works but MyDLL it doesn't. So that means I have to create some properties on the DLL to pass the settings over to it.