I am working in Visual Studio 2005 and have 2 web apps. Both of them have this in the VB Code Behind:
Dim connectionString As String = ConfigurationSettings.AppSettings("theConnectionString").Replace("ClientName", Session("Client"))
ConfigurationSettings.AppSettings keeps getting a warning, so taking the warning suggestion I recoded it as:
Dim connectionString As String = System.Configuration.ConfigurationManager.AppSettings("theConnectionString").Replace("ClientName", Session("Client"))
In the first app, it works without an error.
But in the second app, I get this error:
'ConfigurationManager' is not a member of 'Configuration'.
I cannot figure out what is basically different between the two apps. Why is this happening?