Configuration config = WebConfigurationManager.OpenWebConfiguration(context.Request.ApplicationPath);
AppSettingsSection appSettings = (AppSettingsSection)config.GetSection("appSettings");
if (dbName == "TestWeb")
{
appSettings.Settings["SQLServer"].Value = "server=192.168.1.7;database=TestWeb;uid=web;pwd=web";
appSettings.Settings["DBOName"].Value = "WebDB";
}不报错,但是也不上。
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货