错误:十六进制值 0x0B 是无效的字符

作者:动易网络    文章来源:本站整理    点击数:    更新时间:2008-5-27
问题:后台条目列表显示没问题,但前台条目列表的其中第4页出现这个错误提示,其它页面正常。

“/”应用程序中的服务器错误。

“ ”(十六进制值 0x0B)是无效的字符。
   

说明: 执行当前 Web 请求期间,出现未处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

异常详细信息: System.ArgumentException: “ ”(十六进制值 0x0B)是无效的字符。

源错误:
   

执行当前 Web 请求期间生成了未处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。
堆栈跟踪:

[ArgumentException: “”(十六进制值 0x0B)是无效的字符。]
   System.Xml.XmlEncodedRawTextWriter.InvalidXmlChar(Int32 ch, Char* pDst, Boolean entitize) +1841312
   System.Xml.XmlEncodedRawTextWriter.WriteElementTextBlock(Char* pSrc, Char* pSrcEnd) +494
   System.Xml.XmlEncodedRawTextWriter.WriteString(String text) +83
   System.Xml.QueryOutputWriter.WriteString(String text) +46
   System.Xml.Xsl.Runtime.XmlQueryOutput.WriteStringUnchecked(String text) +9
   <xsl:template match="/">(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime, XPathNavigator {urn:schemas-microsoft-com:xslt-debug}current) +5289
   Root(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) +30
   Execute(XmlQueryRuntime {urn:schemas-microsoft-com:xslt-debug}runtime) +4
   System.Xml.Xsl.ExecuteDelegate.Invoke(XmlQueryRuntime runtime) +0
   System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlSequenceWriter results) +108
   System.Xml.Xsl.XmlILCommand.Execute(Object defaultDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter writer, Boolean closeWriter) +111
   System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, XmlWriter results) +44
   System.Xml.Xsl.XmlILCommand.Execute(IXPathNavigable contextDocument, XmlResolver dataSources, XsltArgumentList argumentList, TextWriter results) +39
   System.Xml.Xsl.XslCompiledTransform.Transform(IXPathNavigable input, XsltArgumentList arguments, TextWriter results) +159
   PowerEasy.Templates.LabelTransform.GetLabelDataTable(String labelId, Int32 cPage, LabelInfo inLabel) +1601
   PowerEasy.Templates.TemplateTransform.DatasourceLabelProc(String getLabel, TemplateInfo templateInfo) +1578
   PowerEasy.Templates.TemplateTransform.GetHtml(TemplateInfo templateInfo) +244
   PowerEasy.WebSite.Category.Render(HtmlTextWriter writer) +639
   System.Web.UI.Control.RenderControlInternal(HtmlTextWriter writer, ControlAdapter adapter) +25
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer, ControlAdapter adapter) +121
   System.Web.UI.Control.RenderControl(HtmlTextWriter writer) +22
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1896

 

解决:

后台标签管理,修改 显示文章栏目循环列表信息_分页 标签

<InfoPath>
<a href="<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>">
<xsl:value-of disable-output-escaping="yes" select="pe:CutText(pe:EncodeText(Title,'htmldecode'),$titlelen,'...')" />
</a>
</InfoPath>
<NodePath>
<a href="<xsl:value-of select="pe:GetNodePath('true',NodeID)"/>">
<xsl:value-of disable-output-escaping="yes" select="pe:EncodeText(pe:GetNode(NodeID,'name'),'htmldecode')" />
</a>
</NodePath>

改为

<InfoPath>
<a href="<xsl:value-of select="pe:GetInfoPath(GeneralID)"/>">
<xsl:value-of select="pe:CutText(pe:RemoveHtml(pe:EncodeText(Title,'htmldecode')),$titlelen,'...')" />
</a>
</InfoPath>
<NodePath>
<a href="<xsl:value-of select="pe:GetNodePath('true',NodeID)"/>">
<xsl:value-of select="pe:GetNode(NodeID,'name')" />
</a>
</NodePath>

将红色部分改为蓝色部分即可


图片点击可在新窗口打开查看此主题相关图片如下:
图片点击可在新窗口打开查看

  • 上一篇文章: