Error: The name 'ConfigurationManager' does not exist in the current context

Viewed 98533

I have included the following statement in my Visual C# Console Application (Visual Studio 2005 .NET 2.0 Framework)

using System.Configuration;

and I am using the following statement in my application:

ConfigurationManager.AppSettings["SomeStringOverHere"];

I try to build the application and I get the error: The name 'ConfigurationManager' does not exist in the current context.

Any help please?

4 Answers
  • at the solution explorer
  • select References
  • then click Add Reference from the right mouse button menu

enter image description here

  • in the top right corner write "Configuration:
  • check the System.Configuration, which would show up
  • press OK

enter image description here

Related