How to edit Visual C# xml config file

Posted on 2009-02-23
Medium Priority
Last Modified: 2013-12-17
Hi Experts

I have a registry entry with the location of my database inside, and inside of the xml config file it defines the path of the database, but it is hard coded... I can display the information of the registry in a label, but how do i get the path that's in the registry inside of the xml config file
<?xml version="1.0" encoding="utf-8" ?>
        <add name="Road_Call_Fuel_Transactions.Properties.Settings.TransportScheduling_ConnectionString"
            connectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=\\ben\TransportScheduling_be.mdb"
            providerName="System.Data.OleDb" />

Open in new window

Question by:Benvor
LVL 53

Accepted Solution

Dhaest earned 2000 total points
ID: 23719051
I can't completely follow. What exactly are you trying to do ?

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

Author Closing Comment

ID: 31550464
never mind, that piece of code works 100% thanx

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
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. …

840 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