tags:

views:

66

answers:

3

This is not working.. any ideas?

ConfigurationManager.ConnectionStrings("YourConnectionString").ConnectionString

Error

"ConfigurationManager not declared"

+2  A: 

Do you have

Imports System.Configuration

in your code? And a reference to the System.Configuration assembly in your project?

Jon Skeet
+2  A: 

And...

Have you added a reference to the System.Configuration assembly?

Sam
A: 

Also, you may need to add a reference to System.Configuration .

Kobi