无法访问我的代码中的配置管理器

编程入门 行业动态 更新时间:2024-10-23 20:18:59
本文介绍了无法访问我的代码中的配置管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经在代码中添加了System.Configuration命名空间.但是仍然无法访问ConfigurationManager class. 请帮帮我 Framework: 4.0 问候 Chaithu

Hi , I have added System.Configuration namespace to my code.But still i am unable to access ConfigurationManager class. Please help me Framework: 4.0 regards Chaithu

推荐答案

您还需要在项目中添加对System.Configuration的引用(有时Intellisense允许您放置Using语句,即使没有引用实际的dll).在解决方案资源管理器中,右键单击引用,然后单击添加引用",然后选择"System.Configuration". 希望对您有帮助 You will also need to add a reference to System.Configuration in your project(sometimes Intellisense lets you put a Using statement even though there is no reference to the actual dll). In Solution Explorer, right click references, then Add Reference and select System.Configuration. Hope this helps

您已添加"Systm.Configuration" 尝试添加" System.Configuration ":) You have added "Systm.Configuration" try adding "System.Configuration" :)

ConfigurationManager确实属于System.Configuration.因此,除非您正在使用框架1.1,否则您应该能够访问ConfigurationManager. ConfigurationManager does belongs from System.Configuration. So you should be able to access ConfigurationManager unless you are using framework 1.1.

更多推荐

无法访问我的代码中的配置管理器

本文发布于:2023-11-08 11:19:40,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1569224.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:管理器   无法访问   代码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!