G
Guest
I was using the following function in .NET 2003:
Public Shared Function GetConnectionString() As String
Return ConfigurationSettings.AppSettings(DB_CONNECTION)
End Function
It is now underlined in green, and the message when I hover over it is that
this code is now obsolete, and has been replaced by :
System.Configuration!System.Configuration.ConfigurationManager.AppSettings
I can't change my code to this - it says ConfigurationManager is not a
member of configuration...
What do I do to fix this?
Thanks in advance!
Amber
Public Shared Function GetConnectionString() As String
Return ConfigurationSettings.AppSettings(DB_CONNECTION)
End Function
It is now underlined in green, and the message when I hover over it is that
this code is now obsolete, and has been replaced by :
System.Configuration!System.Configuration.ConfigurationManager.AppSettings
I can't change my code to this - it says ConfigurationManager is not a
member of configuration...
What do I do to fix this?
Thanks in advance!
Amber