【发布时间】:2012-01-18 12:12:54
【问题描述】:
我在窗口应用程序中从 app_config 读取连接字符串时收到此异常“配置系统无法初始化”
string con = ConfigurationSettings.AppSettings["ConnectionString"].ToString();
输入以下行后在此行上
[assembly: log4net.Config.XmlConfigurator(Watch = true)]
在 AssemblyInfo.cs 中。如果我从 Assemblyinfo.cs 中删除此行,那么我将毫无例外地添加此程序集以用于记录目的
【问题讨论】:
标签: c# .net log4net connection-string log4net-configuration