techBeginner
techBeginner

Reputation: 3850

ConfigurationManager class not available

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?

Upvotes: 10

Views: 12654

Answers (2)

Joel Beckham
Joel Beckham

Reputation: 18648

Add a reference to System.Configuration.dll.

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

Upvotes: 25

MeqDotNet
MeqDotNet

Reputation: 718

Add references to your website as System.Web.Configuration and System.Configuration and it will work.

Upvotes: 4

Related Questions