Turn from "http://blog.csdn.net/jueane/article/details/8502553"
Warning "System.Configuration.ConfigurationSettings.AppSettings" is obsolete, workaround
String cnnstr = system.configuration.configurationsettings.appsettings["CNN"];
The following warning is drawn
"System.Configuration.ConfigurationSettings.AppSettings" is obsolete: "This method is obsolete, it has been replaced by system.configuration! System.Configuration.ConfigurationManager.AppSettings.
Write the configurationsettings directly into the ConfigurationManager, but the hint has no configurationmanager statement.
Then, in the "solution" on the right side of the "reference", introduce system.configuration in. Net.
Then, write the Using system.configuration in the space;
Finally, write the ConfigurationSettings ConfigurationManager. This will be OK.
ConfigurationSettings.AppSettings is obsolete