App.config in WPF Project

Published on Thursday, September 29, 2011

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.


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

using System.Configuration;