摘要: C# 读取app.config配置文件 节点键值,提示 "配置系统未能初始化" 错误的解决方案 新建C#项目,在app.config中添加了appSettings项,运行时出现"配置系统未能初始化"的错误, MSDN里写到,如果配置文件中包含 configSections 元素,则 configSe 阅读全文
posted @ 2016-10-19 15:10 天王星天 阅读(5096) 评论(0) 推荐(0)
摘要: //App.config <?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <!--添加自定义配置节点,type:解析类名,程序集名--> <section name="PersonSetion" type 阅读全文
posted @ 2016-10-19 14:50 天王星天 阅读(593) 评论(0) 推荐(0)
摘要: 1)App.config <?xml version="1.0" encoding="utf-8" ?><configuration> <configSections> <section name="color" type="System.Configuration.NameValueSection 阅读全文
posted @ 2016-10-19 14:46 天王星天 阅读(1041) 评论(0) 推荐(0)