App.config in WPF Project

2011-09-29


When you try to use ConfigurationManager in your WPF project, you might can not get it work because there is no related reference by default in WPF project.

You have to add the reference manually, check MSDN here, we know we have to add the reference to System.Configuration.dll file.

wpfApp

After above step, you can add the following line in your code:

using System.Configuration;