6
Answers

Problem getting the connection string from App.Config

Shareb

Shareb

16y
13k
1

I tried getting the value like this: 

System.Configuration.ConfigurationSettings.AppSettings["Database1ConnectionString"];

but I get the error This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings

even if i used the System.Configuration library, i can't see the ConfigurationManger still.

thanks in advance.
~Shareb


Answers (6)