System.NullReferenceException: 未将对象引用设置到对象的实例。
源错误:
行 33: ObjXml.Load(StrSourceFile)
行 34: ObjRootSite=ObjXml.DocumentElement.SelectSingleNode("Newlist")
行 35: AllNodesNum=ObjRootSite.ChildNodes.count '这一行错误
行 36: PageNum=AllNodesNum\Pagesize + 1
行 37: pg.Value=1
源文件: D:\ASP.NET\ASPNETEXM\gbook\index.aspx 行: 35
堆栈跟踪:
[NullReferenceException: 未将对象引用设置到对象的实例。]
ASP.index_aspx.Page_Load(Object sender, EventArgs e) in D:\ASP.NET\ASPNETEXM\gbook\index.aspx:35
System.Web.UI.Control.OnLoad(EventArgs e) +55
System.Web.UI.Control.LoadRecursive() +21
System.Web.UI.Page.ProcessRequestMain() +724
怎么办?