system.configuration warning

G

Guest

I keep getting this warining in my code, but when i tried to look at the
intellisense after system.configuration. , I couldn't find
configurationManager but when i forced to put configurationManager, it gave
me an errror that configurationManager does not exists. I am using .net 2.0


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

am I missing some namespace.

Can anyone please help me with this.

Thanks.
 
I

Ignacio Machin \( .NET/ C# MVP \)

Hi,

You need to add a reference to System.Configuration into your project

IMHO this is an error from MS, not include this namespace by default.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top