Shareb

Shareb

  • NA
  • 16
  • 0

Problem getting the connection string from App.Config

Nov 21 2007 11:13 PM

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)