【发布时间】:2010-09-19 12:56:35
【问题描述】:
在我的 ASP.NET 应用程序中,我有一个 web.config 文件。在 web.config 文件中,我有一个连接字符串...
<connectionStrings>
<add name="HRDb" connectionString="xxxxx" providerName="System.Data.SqlClient" />
</connectionStrings>
然而,当我使用 ConfigurationManager.ConnectionStringsp["HRDb"] 检索此值时,我得到的是旧的连接字符串,而不是新的。
ConfigurationManager 还从哪里(除了 web.config)读取连接字符串值?
我正在从 VS.NET 运行应用程序(未部署到 IIS)。
【问题讨论】:
标签: asp.net configuration connection-string configurationmanager