与命名空间相关的错误 [英] Namespace related error
本文介绍了与命名空间相关的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以向我解释以下错误吗?.
类型或名称空间名称' XmlTextReader'找不到(您是否缺少using指令或程序集引用?)C:\ Documents and Settings \ abc \ My Documents \ Visual Studio 2005 \ WebSites \ test \ Default2.aspx.cs
在此先感谢您.
can anybody explain me about this following error..
The type or namespace name 'XmlTextReader' could not be found (are you missing a using directive or an assembly reference?) C:\Documents and Settings\abc\My Documents\Visual Studio 2005\WebSites\test\Default2.aspx.cs
Thanks in advance.
推荐答案
您需要将其添加到班级顶部:
using System.Xml;
该错误告诉您确切是什么问题!
You need to add this to the top of your class:
using System.Xml;
The error is telling you exactly what is wrong!
右键单击引用,然后将System.xml.dll添加到您的项目中.
Right click references and add System.xml.dll to your project.
这篇关于与命名空间相关的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文