?
Solved

Changing App.Config File at runtime.................

Posted on 2008-11-06
3
Medium Priority
?
5,116 Views
Last Modified: 2013-12-17
Hi Experts,

           I am developing a an application in C#.Net. I hv used App.Config file to store the settings related to application. i want to change the app.config file at runtime but I dont know how to do it. I mean i want to change the values of key in appSettings Section at runtime.

Please help me.

Thanx in advance.

Regards,
Paramhans
0
Comment
Question by:Paramhans
3 Comments
 
LVL 70

Assisted Solution

by:Éric Moreau
Éric Moreau earned 200 total points
ID: 22893505
0
 
LVL 53

Accepted Solution

by:
Dhaest earned 300 total points
ID: 22893572
Other resources:
How to change App.config file run time using C#
http://chiragrdarji.wordpress.com/2008/09/25/how-to-change-appconfig-file-run-time-using-c/

Modifying Configuration Settings at Runtime
http://www.codeproject.com/KB/cs/modconfigruntime.aspx
0
 

Author Comment

by:Paramhans
ID: 22911265
Thanx emoreau and Dhaest
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

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

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …

850 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