all groups > c# > april 2007 >
You're in the

c#

group:

A problem with System.Configuration namespace


A problem with System.Configuration namespace Jyothi Kumar
4/11/2007 10:50:01 PM
c#: Hi, my project is a migrated project from VS 2003 to VS 2005, in this project I used System.Configuration.ConfigurationSettings.AppSettings, now in VS 2005 it is giving a warning Message like:
ConfigurationSettings.AppSettings is Obsolete, please replace with ConfigurationManager.AppSettings, but Iam unable to find this ConfigurationManager class in System.Configuration namespace, but if I add System.Configuration.dll as reference to my project Iam able to find ConfigurationManager class, Can anybody tell me about this concept?
either is this a BUG of VS 2005?

EggHeadCafe.com - .NET Developer Portal of Choice
RE: A problem with System.Configuration namespace Husam Al-A''araj
4/11/2007 11:06:02 PM
Hi,
The following may help you:

http://msdn2.microsoft.com/en-us/library/system.configuration.configurationmanager(vs.80).aspx

Regards,
Husam Al-A'araj

[quoted text, click to view]
Configuration manager oren o
4/12/2007 6:20:26 AM
The ConfigurationManager is a better and improved application configuration managing mechanism introduced in the .NET 2.0 which actually replace the its predecessor and it was embedded in a different assembly as you mensioned before.

Just add a reference and start use it as you have described
\


Plastio

EggHeadCafe.com - .NET Developer Portal of Choice
Re: A problem with System.Configuration namespace Marc Scheuner
4/13/2007 12:00:00 AM
[quoted text, click to view]

It's *NOT* a bug is VS2005 - you just have to add the
System.COnfiguration assembly as a reference before being able to use
the ConfigurationManager class - it's by design.

AddThis Social Bookmark Button