使用System.Configuration.ConfigurationManager.AppSettings["xxx"]时出错

来源:互联网 发布:声音分析软件 编辑:程序博客网 时间:2024/05/21 22:31

在VS.NET2005中使用System.Configuration.ConfigurationManager.AppSettings["xxx"]时出错提示

错误 1 命名空间“System.Configuration”中不存在类型或命名空间名称“ConfigurationManager”(是缺少程序集引用吗?) 

查资料后解决方法:在工程中的“引用”中添加“.NET-->System.Configuration”,这样就通过编译了! : )

原创粉丝点击