无法访问我的代码中的配置管理器 [英] unable to access Configuration Manager in my code
本文介绍了无法访问我的代码中的配置管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在代码中添加了System.Configuration
命名空间.但是仍然无法访问ConfigurationManager
class.
请帮帮我
Framework:.net 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:.net 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 fromSystem.Configuration
. So you should be able to accessConfigurationManager
unless you are using framework 1.1.
这篇关于无法访问我的代码中的配置管理器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文