C# 读取app.config配置文件 节点键值,提示 "配置系统未能初始化" 错误的解决方案

 

 

新建C#项目,在app.config中添加了appSettings项,运行时出现"配置系统未能初始化"的错误,

 

MSDN里写到,如果配置文件中包含 configSections 元素,则 configSections 元素必须是 configuration 元素的第一个子元素。",将自己添加的appSettings放到configSections 后,则正常。

 

 

 

 

转转:http://blog.csdn.net/dxd0128/article/details/7755295

相关文章:

  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2022-02-04
  • 2021-12-31
  • 2021-07-10
  • 2022-12-23
  • 2022-02-24
猜你喜欢
  • 2021-11-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案