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

Invalid nested tag cachosvitamina</p found, expected closing tag p.

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

异常详细信息: iTextSharp.tool.xml.exceptions.RuntimeWorkerException: Invalid nested tag cachosvitamina</p found, expected closing tag p.

源错误:


行 422:    using (TextReader reader = new StringReader(htmlc))
行 423:    {
行 424:        XMLWorkerHelper.GetInstance().ParseXHtml(writer, doc, reader);
行 425:    }
行 426:

源文件: e:\www\bx1.wskmn.com\index.aspx    行: 424

堆栈跟踪:


[RuntimeWorkerException: Invalid nested tag cachosvitamina</p found, expected closing tag p.]
   iTextSharp.tool.xml.XMLWorker.EndElement(String tag, String ns) +458
   iTextSharp.tool.xml.parser.XMLParser.EndElement() +111
   iTextSharp.tool.xml.parser.state.ClosingTagState.Process(Char character) +61
   iTextSharp.tool.xml.parser.XMLParser.ParseWithReader(TextReader reader) +247
   iTextSharp.tool.xml.parser.XMLParser.Parse(TextReader reader) +5
   iTextSharp.tool.xml.XMLWorkerHelper.ParseXHtml(PdfWriter writer, Document doc, TextReader inp) +438
   ASP.index_aspx.GeneratePDF(String pageTitle, String pageContent, String author, String subject, String keywords) in e:\www\bx1.wskmn.com\index.aspx:424
   ASP.<Site>d__9.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:336
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<getsource>d__4.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:235
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Runtime.CompilerServices.TaskAwaiter`1.GetResult() +28
   ASP.<PageLoadAsync>d__0.MoveNext() in e:\www\bx1.wskmn.com\index.aspx:189
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.UI.<ExecuteTasksAsync>d__3.MoveNext() +363
   System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) +99
   System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) +58
   System.Web.UI.<ProcessRequestAsync>d__554.MoveNext() +876


版本信息: Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.7.3535.0