ConfigurationManager class not available

dotNETbeginner picture dotNETbeginner · Oct 24, 2011 · Viewed 12.1k times · Source

enter image description here

I am not able to get the connectionString from App.Config file..

Am I missing something?

after creating the class, I moved the class into some folder..Is that the issue? what is the solution without moving the class?

Answer

Joel Beckham picture Joel Beckham · Oct 24, 2011

Add a reference to System.Configuration.dll.

Menu Bar -> Project -> Add Reference... -> .NET (Tab) -> System.Configuration -> OK