472,958 Members | 2,179 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,958 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 7630
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Michael Debus | last post by:
Hi, I try to read a value from app.config file using this code: string s=System.Configuration.ConfigurationManager.AppSettings.ToString(); I got the compiler error: Error 1 The type or...
2
by: Myo Zaw | last post by:
hi, can i use configurationmanager in .net 2.0 windows form. cause i have an app.config file and i couldn't extract the data from there by using configurationmanager nor 1.1 feature. do u have any...
3
by: natasha | last post by:
Hello everybody, you can use ConfigurationManager.AppSettings.Set method (ConfigurationManager is in System.Web.Configuration namespace) to store a modified value from web.config. To be...
1
by: shapper | last post by:
Hello, I create a few VB classes under app_code of a web site. Now I am trying to create a library project. Something strange is going on. I have the following line: Dim connectionString As...
3
by: Mark | last post by:
I am trying to read the appsettings section of a configuration file using the ConfigurationManager object (ASP.NET application) with the following three lines but for some reason the...
4
by: Jim in Arizona | last post by:
I've been using VB 2005 for a few years now. My entire coding history is VB related. This weekend I decided to start learning C#. I'm at work now and decided to do some coding in C# that I would...
2
by: remya1000 | last post by:
i'm using VB.NET 2003. Last time while i did a program in Vb.Net 2005, i use "Configuration". and i could read and write to that XML configuration file like the example below. CODES:...
2
by: pantagruel | last post by:
Hi, I have a Visual studio 2005 project that runs as a Windows Service. In it I have declared that I am using System.Configuration. I have set one application setting for the service using the...
3
by: Jeff | last post by:
I have a solution with two projects. Project A is the startup project, while Project B serves as the project with the data logic. At run time, the first thing I need to do is write to Project...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
2
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

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.