'/' 應用程式中發生伺服器錯誤。

The document has no pages.

描述: 在執行目前 Web 要求的過程中發生未處理的例外情形。請檢閱堆疊追蹤以取得錯誤的詳細資訊,以及在程式碼中產生的位置。

例外詳細資訊: System.IO.IOException: The document has no pages.

原始程式錯誤:

在執行目前 Web 要求期間,產生未處理的例外狀況。如需有關例外狀況來源與位置的資訊,可以使用下列的例外狀況堆疊追蹤取得。

堆疊追蹤:


[IOException: The document has no pages.]
   iTextSharp.text.pdf.PdfPages.WritePageTree() +1183
   iTextSharp.text.pdf.PdfWriter.Close() +260
   iTextSharp.text.pdf.PdfDocument.Close() +316
   iTextSharp.text.Document.Close() +102
   momo.pg_sch.to_pdf(Object HTMLs) +497
   momo.pg_sch.Page_Load(Object sender, EventArgs e) +3360
   System.Web.UI.Control.OnLoad(EventArgs e) +99
   System.Web.UI.Control.LoadRecursive() +50
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627


版本資訊: Microsoft .NET Framework 版本:2.0.50727.8974; ASP.NET 版本:2.0.50727.8975