3.5 Configuration Manager

  • Thread starter Thread starter John Straumann
  • Start date Start date
J

John Straumann

Hello all:

Most of my .NET experience is in Web sites, so I am a relative newb when it
comes to Windows apps. I am trying to develop an Outlook plugin, and I need
to store some configuration settings like can be done in Web.Config. I did
some digging into the app.config file and am trying to use the
ConfigurationManager as shown here:

http://msdn.microsoft.com/en-us/library/system.configuration.configurationmanager.aspx

and here:

http://geekswithblogs.net/akraus1/articles/64871.aspx

however for some reason I do not seem to be able to access the
ConfigurationManager class. I added using System.Configuration to the code
file, but ConfigurationManager does not seem to be there.

Can anyone make a suggestion as to what I am doing wrong and/or offer
another method for storing some settings?

Thanks in advance.

John.
 
however for some reason I do not seem to be able to access the
ConfigurationManager class. I added using System.Configuration to the
code file, but ConfigurationManager does not seem to be there.

Can anyone make a suggestion as to what I am doing wrong and/or offer
another method for storing some settings?

Add your using statement (Imports in VB) to the top of the file. Either
that or type in ConfigurationManager and then control + period (.) and
choose to add the using/Imports statement.

BTW, you should use the ConfigurationManager in ASP.NET now, as well. The
older style of pulling from the config is deprecated.

Peace and Grace,
Greg

--
Vote for Miranda's Christmas Story
http://tinyurl.com/mirandabelieve

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Hi:


Gregory A. Beamer said:
Add your using statement (Imports in VB) to the top of the file. Either
that or type in ConfigurationManager and then control + period (.) and
choose to add the using/Imports statement.

Thanks for your response, unfortunately I do not see
ConfigurationManager...see pic here:

http://thestraumanns.mine.nu/config.html

Not sure what I am doing wrong...
 
Back
Top