Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

App.Config Reload after appSettings change?

Posted on 2006-06-02
3
Medium Priority
?
3,978 Views
Last Modified: 2012-05-05
I'm saving user settings in the winform app.config (appSettings) section. I understand the config file loads upon winform load, however I need to somehow Reload the config file or restart the winapp. I've tried the code belows from another persons advice, but it doesn't seem to have any effect.

ConfigurationManager.RefreshSection("appSettings");
0
Comment
Question by:kvnsdr
3 Comments
 
LVL 35

Assisted Solution

by:mrichmon
mrichmon earned 375 total points
ID: 16821312
0
 
LVL 1

Author Comment

by:kvnsdr
ID: 16821631
I've read that link, which is a good one, before.

Q. Is there a way to Re-Load the app.config?
0
 
LVL 14

Accepted Solution

by:
existenz2 earned 375 total points
ID: 16825246
You should not use the app.config to dynamicly store information in. Use a resource file or a homemade xml file for it instead. That will also solve your reload problems.
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Najam
Having new technologies does not mean they will completely replace old components.  Recently I had to create WCF that will be called by VB6 component.  Here I will describe what steps one should follow while doing so, please feel free to post any qu…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month21 days, 7 hours left to enroll

804 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question