In .NET 2.0 accessing the values stored in web.config through System.Configuration.ConfigurationSettings.AppSettings doesn’t seem to work anymore

In .NET 2.0 
System.Configuration.ConfigurationSettings.AppSettings has been
changed to 
System.Configuration.ConfigurationManager.AppSettings. Also you
need to add a reference to System.Configuration.dll.
Here’s an example of accessing the SomeString value from the web.config file, in .NET 2.0:

System.Configuration.ConfigurationManager.AppSettings[“SomeString”];

Leave a Reply

Your email address will not be published. Required fields are marked *

Back To Top