471,350 Members | 1,931 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

ConfigurationManager not accessible

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

Jan 31 '06 #1
2 7548
Had a similiar problem. Have you added a reference to the
System.Configuration component in your project?

"robertino" wrote:
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

Jan 31 '06 #2
Hi,

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

Janiek

On Tue, 31 Jan 2006 05:27:07 -0800, "CPrice79"
<CP******@discussions.microsoft.com> wrote:
Had a similiar problem. Have you added a reference to the
System.Configuration component in your project?

"robertino" wrote:
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


Feb 28 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Michael Debus | last post: by
2 posts views Thread by Myo Zaw | last post: by
1 post views Thread by shapper | last post: by
3 posts views Thread by Mark | last post: by
4 posts views Thread by Jim in Arizona | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.