ConfigurationManager not accessible

R

robertino

Hi All,

(VS 2005 Pro, Win XP Pro)
I'm trying to read some app settings from my app.config file (normal
Win app), have included the System.Configuration namespace in my app,
but when I try to access the ConfigurationManager class, I find no
mention of it at all!

According to the online help, ConfigurationManager is the preferred way
to go to access the appSettings information ("all other methods are
deprecated"). So, when I type "System.Configuration.", the dropdown
should show me a whole bunch of stuff belonging to this namespace,
including some 27 beginning with "Configuration", ie "Configuration,
ConfigurationCollectionAttribute, ..., ConfigurationManager, ..." etc.
But the only "Configxxx" attributes/classes/whatever that the dropdown
shows me are: "ConfigurationException, ConfigurationSettings and
ConfigXMLDocument"!

Am I missing something totally obvious here? Is there a patch to VS to
update the System.Configuration component that I know nothing about?

HYCH,
Rob
 
G

Guest

Had a similiar problem. Have you added a reference to the
System.Configuration component in your project?
 
J

Janiek Buysrogge

Hi,

You need to add a reference to System.Configuration.dll manually.

Janiek
 

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