Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

3.5 Configuration Manager

0 views
Skip to first unread message

John Straumann

unread,
Nov 17, 2009, 8:40:07 AM11/17/09
to
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.

Gregory A. Beamer

unread,
Nov 17, 2009, 10:49:01 AM11/17/09
to
"John Straumann" <jstra...@hotmail.com> wrote in
news:E7A03939-8A1C-4600...@microsoft.com:

> 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! |
*******************************************

John Straumann

unread,
Nov 19, 2009, 8:45:04 AM11/19/09
to
Hi:


"Gregory A. Beamer" <NoSpamM...@comcast.netNoSpamM> wrote in message
news:Xns9CC6638C...@207.46.248.16...


> "John Straumann" <jstra...@hotmail.com> wrote in
> news:E7A03939-8A1C-4600...@microsoft.com:
>
>> 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.

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...

Gregory A. Beamer

unread,
Dec 3, 2009, 3:35:18 PM12/3/09
to
"John Straumann" <jstra...@hotmail.com> wrote in news:4DD81428-607E-4CB6-
B2FF-B82...@microsoft.com:

> 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...

What version of .NET is this again?

Peace and Grace,

--
Gregory A. Beamer (MVP)

0 new messages