zoukankan      html  css  js  c++  java
  • System.Configuration命名空间下找不到ConfigurationManager类

    System.Configuration命名空间下找不到ConfigurationManager类

     

    开始使用VS 2005,习惯性的使用ConfigurationSettings类来读取应用程序配置文件的信息时,却被编译器提示说:
    警告 1 “System.Configuration.ConfigurationSettings.AppSettings”已过时:“This method is obsolete,
    it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings”
    于是转而想找到那个ConfigurationManager类来使用,结果在System.Configuration命名空间下死活找不到ConfigurationManager类,
    无奈,求助于网络,才知道原来还要添加对System.Configuration.dll 文件的引用~~
    事后才留意到,原来MS对这一点还是提示了一下的,只不过比较隐晦而已——
    This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.AppSettings

  • 相关阅读:
    Mysql 触发器
    Mysql 的变量
    Mysql 事务
    重置mysql管理员密码
    mysql数据备份
    Mysql的联合查询
    Mysql的存储引擎
    数据库的视图
    数据库子查询
    数据库外键
  • 原文地址:https://www.cnblogs.com/a13971240/p/1316772.html
Copyright © 2011-2022 走看看