Reputation: 3850
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
Reputation: 18648
Add a reference to System.Configuration.dll
.
Menu Bar -> Project -> Add Reference... -> .NET (Tab) -> System.Configuration -> OK
Upvotes: 25
Reputation: 718
Add references to your website as System.Web.Configuration and System.Configuration and it will work.
Upvotes: 4