Resolve System.Configuration.ConfigurationSettings warning

If you have been migrated from ASP.NET 1.1 to ASP.NET 2.0 and still using the System.Configuration.ConfigurationSettings.AppSettings to get the application stored configurations ,you may face this warning

System.Configuration.ConfigurationSettings.AppSettings' is obsolete: 'This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings'

1 

This warning exists because this method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings

For a list of NET Framework V2.0 Obsolete API List refer to http://msdn.microsoft.com/en-us/netframework/Aa497286.aspx

To Resolve this issue, follow the following steps :

1- Make sure you add a reference to System.Configuration.dll.

2- Start replacing ConfigurationSettings.AppSettings with ConfigurationManager.AppSettings.

13 Comments

Comments have been disabled for this content.