How to edit Visual C# xml config file

Posted on 2009-02-23
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

    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

    never mind, that piece of code works 100% thanx

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    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…
    Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
    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.…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    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

    11 Experts available now in Live!

    Get 1:1 Help Now