Obsolete function

J

John

Hi

I am using ConfigurationSettings.AppSettings.Get(key) in my app and I get a
warning that it is obsolete but when I use
System.Configuration.ConfigurationManager.AppSettingsGet(key) instead I get
the error 'ConfigurationManager' is not a member of 'Configuration'.

What am I missing?

Thanks

Regards
 
G

Guest

I am using ConfigurationSettings.AppSettings.Get(key) in my app and I
get a warning that it is obsolete but when I use
System.Configuration.ConfigurationManager.AppSettingsGet(key) instead
I get the error 'ConfigurationManager' is not a member of
'Configuration'.

You'll need to manually add a reference to System.Configuration
 

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