该引入什么命名空间
“/”应用程序中的服务器错误。
--------------------------------------------------------------------------------
编译错误
说明: 在编译向该请求提供服务所需资源的过程中出现错误。请检查下列特定错误详细信息并适当地修改源代码。
编译器错误信息: CS0246: 找不到类型或命名空间名称“XmlDocument”(是否缺少 using 指令或程序集引用?)
源错误:
行 7: {
行 8: String FilePath = Server.MapPath("menu.xml");
行 9: XmlDocument doc = new XmlDocument();
行 10: doc.Load(FilePath);
行 11: XmlNodeList nodes = doc.SelectNodes("基础数据");
源文件: F:\www\www.ezhen.com\read.aspx 行: 9
显示完整的编译源:
行 1: //------------------------------------------------------------------------------
行 2: // <autogenerated>
行 3: // This code was generated by a tool.
行 4: // Runtime Version: 1.0.3705.288
行 5: //
行 6: // Changes to this file may cause incorrect behavior and will be lost if
行 7: // the code is regenerated.
行 8: // </autogenerated>
行 9: //------------------------------------------------------------------------------
行 10:
行 11: namespace ASP {
行 12: using System;
行 13: using System.Collections;
行 14: using System.Collections.Specialized;
行 15: using System.Configuration;
行 16: using System.Text;
行 17: using System.Text.RegularExpressions;
行 18: using System.Web;
行 19: using System.Web.Caching;
行 20: using System.Web.SessionState;
行 21: using System.Web.Security;
行 22: using System.Web.UI;
行 23: using System.Web.UI.WebControls;
行 24: using System.Web.UI.HtmlControls;
行 25:
行 26:
行 27: [System.Runtime.CompilerServices.CompilerGlobalScopeAttribute()]
行 28: public class read_aspx : System.Web.UI.Page, System.Web.SessionState.IRequiresSessionState {
行 29:
行 30: private static int __autoHandlers;
行 31:
行 32: private static bool __intialized = false;
行 33:
行 34: private static System.Collections.ArrayList __fileDependencies;
行 35:
行 36:
行 37: #line 5 "F:\www\www.ezhen.com\read.aspx"
行 38:
行 39: public void Page_Load(Object o, EventArgs e)
行 40: {
行 41: String FilePath = Server.MapPath("menu.xml");
行 42: XmlDocument doc = new XmlDocument();
行 43: doc.Load(FilePath);
行 44: XmlNodeList nodes = doc.SelectNodes("基础数据");
行 45: int Count = nodes.Count;
....................................
--------------------------------------------------------------------------------
版本信息: Microsoft .NET 框架版本:1.0.3705.288; ASP.NET 版本:1.0.3705.288