I'm looking at a custom built .NET control (vb). It has a public string declared as:
Public Shared strConn As String = ConfigurationSettings.AppSettings("TheDB")
I'm trying to find out what "TheDB" is supposed to be exactly. I looked the web.config file of the website using this custom control, but there is no "TheDB" parameter anywhere. I also looked in the web server's machine.config file, and again, no "TheDB" parameters there either.
Help.
If it's missing, just add it:
(assuming that
ConfigurationSettings.AppSettings
really corresponds toappSettings
section of theweb.config
. This is not clear as normally you refer to standard sections of configuration files using builtinConfigurationManager
class)