PC Review


Reply
Thread Tools Rate Thread

3.5 Configuration Manager

 
 
John Straumann
Guest
Posts: n/a
 
      17th Nov 2009
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/libr...onmanager.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.

 
Reply With Quote
 
 
 
 
Gregory A. Beamer
Guest
Posts: n/a
 
      17th Nov 2009
"John Straumann" <(E-Mail Removed)> wrote in
news:E7A03939-8A1C-4600-A7B3-(E-Mail Removed):

> 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! |
*******************************************
 
Reply With Quote
 
John Straumann
Guest
Posts: n/a
 
      19th Nov 2009
Hi:


"Gregory A. Beamer" <(E-Mail Removed)> wrote in message
news:Xns9CC6638C5712Bgbworld@207.46.248.16...
> "John Straumann" <(E-Mail Removed)> wrote in
> news:E7A03939-8A1C-4600-A7B3-(E-Mail Removed):
>
>> 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...



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


 
Reply With Quote
 
Gregory A. Beamer
Guest
Posts: n/a
 
      3rd Dec 2009
"John Straumann" <(E-Mail Removed)> wrote in news:4DD81428-607E-4CB6-
B2FF-(E-Mail Removed):

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

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

*******************************************
| Think outside the box! |
*******************************************
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
COnfiguration manager Iouri Microsoft VB .NET 1 15th Aug 2007 06:07 PM
Configuration Manager Jack Jiang Microsoft C# .NET 1 28th Mar 2007 09:48 PM
Re: Configuration Manager Alex N Windows XP Configuration 0 23rd Jun 2004 02:53 PM
Configuration Manager Hadi Hariri Microsoft ASP .NET 2 4th Jan 2004 07:31 AM
vb.net Configuration Manager Won't Allow Changes Justin Braun Microsoft VB .NET 0 10th Nov 2003 06:27 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:12 PM.