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

Posted on 2008-11-06
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.

Question by:Paramhans
    LVL 69

    Assisted Solution

    by:Éric Moreau
    LVL 53

    Accepted Solution

    Other resources:
    How to change App.config file run time using C#

    Modifying Configuration Settings at Runtime

    Author Comment

    Thanx emoreau and Dhaest

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Suggested Solutions

    The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
    A theme is a collection of property settings that allow you to define the look of pages and controls, and then apply the look consistently across pages in an application. Themes can be made up of a set of elements: skins, style sheets, images, and o…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    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.…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    15 Experts available now in Live!

    Get 1:1 Help Now