Search code examples
c#.net-3.5referenceconfigurationmanagersystem.configuration

Where is ConfigurationManager's namespace?


I've got a reference to System.Configuration - and ConfigurationSettings is found no problem - but the type or namespace 'ConfigurationManager' could not be found!?

I've read around - and it looks like it should belong to the same namespace as the ConfigurationSettings class.

EDIT: Please take note - I've clearly said I have added a reference to System.Configuration. There's been 4 comments already about this.


Solution

  • ConfigurationManager is a part of the System.Configuration after .Net 2.0. Add a reference to the System.Configuration dll. Try using System.Configuration.ConfigurationManager.