ConfigurationManager not found

DeveloperM picture DeveloperM · Dec 13, 2010 · Viewed 39.4k times · Source

I am new to VS 3.5 and I am writing a console app that needs to pull some key values from the app.config file.

I have:

Imports System.Configuration 

and I am trying to reference ConfigurationManager.AppSettings but this generates an error:

Name ConfigurationManager is not declared

What am I missing?

Answer

Philip Fourie picture Philip Fourie · Dec 13, 2010

Make sure you have a reference to the assembly System.Configuration.dll