When vs 2003 is converted to 2005, the project displays the class referenced by the obsolete configuration file in 2003, as shown below:
System. configuration. configurationsettings. Expired ettings expired warning: "system. configuration. configurationsettings. Expired ettings" expired: "This method is obsolete, it has been replaced by system. Configuration! System. configuration. configurationmanager. deleetmanager"
Note: The configurationmanager class is not referenced by default. Therefore, the configurationmanager class of the system. Configuration namespace cannot be found.
Solution:
First, add a reference to the system. configuration. dll file;
Next, replace "system. configuration. configurationsettings. getconfig with system. configuration. configurationmanager. getsection;
Finally, replace "system. configuration. configurationsettings. configurettings" with "system. configuration. configurationmanager. configurettings ".