IronPDF 故障排除 IronPDF 原生异常 IronPDF中的原生異常處理 Curtis Chau 更新:2025年6月9日 下載 IronPDF NuGet 下載 DLL 下載 Windows Installer 開始免費試用 LLM副本 LLM副本 將頁面複製為 Markdown 格式,用於 LLMs 在 ChatGPT 中打開 請向 ChatGPT 諮詢此頁面 在雙子座打開 請向 Gemini 詢問此頁面 在 Grok 中打開 向 Grok 詢問此頁面 打開困惑 向 Perplexity 詢問有關此頁面的信息 分享 在 Facebook 上分享 分享到 X(Twitter) 在 LinkedIn 上分享 複製連結 電子郵件文章 This article was translated from English: Does it need improvement? Translated View the article in English 在IronPDF的最新版本中,日誌中的原生異常訊息將包含一個特定的問題代碼: [問題代碼 IRONPDF-NATIVE-EXCEPTION] 。 下面展示了一個此類異常訊息的範例: IronPdf.Exceptions.IronPdfNativeException: Error while generating PDF from HTML: 'Error while rendering pdf from html for job group 0: 'Error during dev tools execution: {"method":"Inspector.targetCrashed","params":{}}''. 2024-01-25 08:12:11,960 INFO [Thread-3] [, , , , , , , , ] c.i.i.i.s.Access: [IronPdfEngine] To learn how to solve this issue please read https://ironpdf.com/troubleshooting/ironpdf-native-exception [Issue Code IRONPDF-NATIVE-EXCEPTION] 可能原因 IronPDF原生異常通常是由IronPdf.Native.Chrome 套件中使用的 C++ 程式碼的各種問題引起的,該套件是IronPDF的依賴項,並且涉及使用 Chrome PDF 渲染引擎。 解決方案 如需獲得有關原生異常問題的協助,請提交工程支援請求並提供完整的日誌檔案以便進一步調查。 透過在專案中新增以下程式碼片段來啟用原生日誌記錄: // Set the path for the log file. // This can be a directory name or a specific file path. Here, we set it to "Default.log". IronPdf.Logging.Logger.LogFilePath = "Default.log"; // Enable logging for all modes to capture comprehensive details IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All; // Set the path for the log file. // This can be a directory name or a specific file path. Here, we set it to "Default.log". IronPdf.Logging.Logger.LogFilePath = "Default.log"; // Enable logging for all modes to capture comprehensive details IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All; $vbLabelText $csharpLabel IronPDF建立的日誌檔案通常位於專案/bin 目錄中,該目錄部署了 DLL 檔案;或者,您可以設定自訂 IronPdf.Logging.Logger.LogFilePath 將日誌檔案儲存在特定位置。 相關日誌檔包括: Default.log :包含有關部署、執行緒和渲染過程的資訊。 它有助於觀察過程行為和異常情況。 cef.log :包含 Chrome 嵌入式框架進程的日誌。 請注意在舊版的IronPDF中,日誌檔案也可能包含 IronSoftwareEngine.log。 請提交所有在請求工程支援時產生的日誌檔案。 對於雲端伺服器,日誌檔案可能位於特定目錄中。 請參閱我們的指南,以了解如何在Azure和AWS中產生日誌檔案。 Curtis Chau 立即與工程團隊聊天 技術作家 Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。 準備好開始了嗎? Nuget 下載 17,803,474 | 版本: 2026.3 剛剛發布 開始免費試用 免費 NuGet 下載 總下載量:17,803,474 查看許可證 還在滾動嗎? 想快速取得證據? PM > Install-Package IronPdf 運行範例看著你的HTML程式碼變成PDF檔。 免費 NuGet 下載 總下載量:17,803,474 查看許可證