11/2/09

How to read from the app.config file

Create your config file in Project->Properties->Settings. This will generate your app.config file. Next build your app. In the bin directory look for .exe.config . Use this exe.config file to update your app once it is deployed. I built a service, installed the service, then copied the exe.config file into the same directory.

To access app.config from code use: Settings.Default.

5 comments: