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”]; |