本文介绍了无法访问我的代码中的配置管理器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经在代码中添加了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.
更多推荐
无法访问我的代码中的配置管理器
发布评论