• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2173
  • Last Modified:

How to open and read an App.config file in vb.net

Can I create a windows app using visual basic to open an another apps App.config file?  Must of my serchers on the web,
show using XML.
1 Solution
N2435ProgrammerAuthor Commented:
My question is very close to the "Recursive File Searching In VB.NET" Asked On2007-07-16 Asked by: gcz
Solved by: m_renaud

In my case there will be no user enterface.  My application will be part of updating the clients new version names of
MS Access applications (currently have 48 different Access apps). Hopefullly my new application will:
          a) MY application wiil start
          b)  read an app. config file.  The app.config will exist  in the same directory as the application.
          c)  Application will then open MS Access application as indicated in the app.config file.
Jacques Bourgeois (James Burger)Commented:
Must of my serchers on the web, show using XML.

This is because .config files are XML files. So what you found in your searches is probably OK.
You can use the ConfigurationManager class and use its OpenExeConfiguration method to load the app.config file


Featured Post

Transaction-level recovery for Oracle database

Veeam Explore for Oracle delivers low RTOs and RPOs with agentless transaction log backup and transaction-level recovery of Oracle databases. You can restore the database to a precise point in time, even to a specific transaction.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now