System.Configuration.ConfigurationManager.GetSection
来源:互联网 发布:螺纹编程 编辑:程序博客网 时间:2024/06/05 11:03
<script type="text/javascript"><!--google_ad_client = "pub-0241434510974184";/* auto-http.cn 右边 ,468x60 */google_ad_slot = "0902256228";google_ad_width = 468;google_ad_height = 60;// --></script><script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script>
好几次在代码中使用了System.Configuration.ConfigurationSettings.GetConfig方法,但每次使用之后都出现如下提示:
但奇怪的是每次按系统提示调用System.Configuration.ConfigurationManager.GetSection方法时都出现以下错误:命名空间“System.Configuration”中不存在类型或命名空间名称“ConfigurationManager”(是缺少程序集引用吗?)。以前都尝试失败后就继续使用GetSection方法,今天再次尝试又出错,于是就去查阅了MSDN,关于ConfigurationManager类的说明如下:
关于ConfigurationSettings类的说明如下:
哈哈,原来ConfigurationSetting属于system.dll程序集中,而ConfigurationManager属于system.configration.dll程序集中,系统默认引入的程序集中不包含system.configration.dll程序集,所以只需引用system.configration.dll程序集就可以了。
- System.Configuration.ConfigurationManager.GetSection
- 关于ConfigurationManager.GetSection()方法
- System.Configuration.ConfigurationManager.AppSettings["connString"];
- System.Configuration.ConfigurationManager.AppSettings["strCon"]
- 关于System.Configuration.ConfigurationManager.AppSettings问题
- Using System.Configuration.ConfigurationManager Example (VB.NET)
- 使用System.Configuration.ConfigurationManager.AppSettings["xxx"]时出错
- System.Configuration命名空间下找不到ConfigurationManager类
- 在System.Configuration命名空间下死活找不到ConfigurationManager类
- 引用了System.Configuration命名空间,却找不到ConfigurationManager类
- System.Configuration命名空间下找不到ConfigurationManager类
- System.Configuration命名空间下找不到ConfigurationManager类
- c#中System.Configuration.ConfigurationManager.AppSettings如何配置
- 引用了System.Configuration命名空间,却找不到ConfigurationManager类
- Windows Service System.Configuration.ConfigurationManager 无法获取appSettings值
- “System.Configuration”中不存在类型或命名空间名称“ConfigurationManager”
- 使用ConfigurationManager.GetSection()来实现类的方法
- “System.Configuration”中不存在类型或命名空间名称“ConfigurationManager”错误的解决方法
- 得用DWR实时自动动态更新网页数据
- 打开文件
- A
- 悬停效果 静止不动 不随滚动条滚动 纯css实现
- error_messages_for
- System.Configuration.ConfigurationManager.GetSection
- zz一篇很赞同的文章:2008年以后房价会降?想都不要想
- sql 实现递归算法
- VC编译连接错误解决札记
- 设计模式示例一 Factory Method(工厂方法)
- VB图像处理,(七)一种邻近均值滤波器的算法介绍(去尘,去噪音)
- C++程序员常用工具集
- JavaScript中的null和undefined
- 【回家感想】人生为什么需要规划?