Managing Connection Strings (error on p 584!?)
Can anybody help?
the sample on page 584 seems not to be right.
I get two errors while trying to use connection strings (i'm using system.configuration!):
The errative line:
ConnectionStringSettings settings = ConfigurationSettings.ConnectionStrings[name];
The type or namespace name 'ConnectionStringSettings' could not be found (are you missing a using directive or an assembly reference?)
and
'System.Configuration.ConfigurationSettings' does not contain a definition for 'ConnectionStrings'
What is wrong?
|