代码改变世界

引用了System.Configuration命名空间,却找不到ConfigurationManager类

2009-12-02 21:21  诸葛二牛  阅读(695)  评论(0)    收藏  举报
ConfigurationManager类来读取应用程序配置文件的信息时,提示:System.Configuration命名空间下找不到ConfigurationManager类

查过资料后得知:要添加对System.Configuration.dll文件的引用
 
 
System.Configuration.ConfigurationManager 是.net 2.0的 新类,在System.Configuration.dll中

ConfigurationSettings 类在system.dll中, 所以不需要应用