这就是以前出的错误提示:
生成模板文件时出错,详情如下:
“/”应用程序中的服务器错误。
传递给此方法的表达式应产生 NodeSet。
说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。
异常详细信息: System.Xml.XPath.XPathException: 传递给此方法的表达式应产生 NodeSet。
源错误:
执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:
[XPathException: 传递给此方法的表达式应产生 NodeSet。]
System.Xml.XPath.XPathParser.ParseNodeTest(AstNode qyInput, AxisType axisType, XPathNodeType nodeType) +834
System.Xml.XPath.XPathParser.ParseStep(AstNode qyInput) +207
System.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput) +12
System.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput) +106
System.Xml.XPath.XPathParser.ParseRelativeLocationPath(AstNode qyInput) +106
System.Xml.XPath.XPathParser.ParseLocationPath(AstNode qyInput) +68
System.Xml.XPath.XPathParser.ParsePathExpr(AstNode qyInput) +140
System.Xml.XPath.XPathParser.ParseUnionExpr(AstNode qyInput) +22
System.Xml.XPath.XPathParser.ParseUnaryExpr(AstNode qyInput) +81
System.Xml.XPath.XPathParser.ParseMultiplicativeExpr(AstNode qyInput) +22
System.Xml.XPath.XPathParser.ParseAdditiveExpr(AstNode qyInput) +22
System.Xml.XPath.XPathParser.ParseRelationalExpr(AstNode qyInput) +22
System.Xml.XPath.XPathParser.ParseEqualityExpr(AstNode qyInput) +22
System.Xml.XPath.XPathParser.ParseAndExpr(AstNode qyInput) +17
System.Xml.XPath.XPathParser.ParseOrExpr(AstNode qyInput) +17
System.Xml.XPath.XPathParser.ParseXPathExpresion(String xpathExpresion) +55
System.Xml.XPath.XPathNavigator.Compile(String xpath) +55
System.Xml.XPath.XPathNavigator.Select(String xpath) +30
System.Xml.XmlNode.SelectSingleNode(String xpath) +35
Discuz.Common.DNTCache.AddObject(String xpath, Object o, String[] files) +189
Discuz.Forum.ForumPageTemplate.GetTemplateVarList(String skinName) +436
Discuz.Forum.ForumPageTemplate.ReplaceSpecialTemplate(String skinName, String strTemplate) +364
Discuz.Common.PageTemplate.ConvertTags(Int32 nest, String skinName, String inputStr, Int32 templateid) +6968
Discuz.Common.PageTemplate.GetTemplate(String skinName, String templateName, Int32 nest, Int32 templateid) +1402
Discuz.Forum.ForumPageTemplate.GetTemplate(String skinName, String templateName, Int32 nest, Int32 templateid) +17
Discuz.ForumPage.Admin.Templates.templatetree.Button2_Click(Object sender, EventArgs e) +522
Discuz.Admin.Controls.Button.OnClick(EventArgs e)
Discuz.Admin.Controls.Button.RaisePostBackEvent(String eventArgument)
Discuz.Admin.Controls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument)
System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18
System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138
System.Web.UI.Page.ProcessRequestMain() +1292
版本信息: Microsoft .NET Framework 版本:1.1.4322.2300; ASP.NET 版本:1.1.4322.2300