IronPDF 疑難排解 部署 Pdfium 相依性時發生錯誤 解決 PDFium 相依性錯誤 Curtis Chau 更新:6月 1, 2025 下載 IronPDF NuGet 下載 DLL 下載 Windows 安裝程式 開始免費試用 法學碩士副本 法學碩士副本 將頁面複製為 Markdown 格式,用於 LLMs 在 ChatGPT 中打開 請向 ChatGPT 諮詢此頁面 在雙子座打開 請向 Gemini 詢問此頁面 在雙子座打開 請向 Gemini 詢問此頁面 打開困惑 向 Perplexity 詢問有關此頁面的信息 分享 在 Facebook 上分享 分享到 X(Twitter) 在 LinkedIn 上分享 複製連結 電子郵件文章 This article was translated from English: Does it need improvement? Translated View the article in English Google PDFIUM 是 IronPDF 核心程式碼的重要組成部分,用於與 PDF 編輯和將 PDF 文件轉換為影像相關的各種功能。 如果專案資料夾中缺少 PDFIUM 二進位文件,則執行時將拋出以下錯誤。 Unhandled exception. IronSoftware.Exceptions.IronSoftwareDeploymentException: Error while deploying Pdfium for IronPdf: 'Unable to locate 'IronPdfInterop' 將IronPdf.Native.PdfModel套件安裝到專案中通常可以解決此問題。 在 Windows 系統上,最好也確保目標作業系統安裝了Visual C++ 執行階段環境。 如果那樣還不能解決問題怎麼辦? 如果以上方法未能解決問題,我們將竭誠為您提供協助。相容性是我們工程團隊的首要任務。 請發送電子郵件至[電子郵件地址]提交錯誤報告。support@ironsoftware.com 。 所有相容性問題都將由高級工程師認真審查。 請務必告知我們部署到的作業系統/平台,特別是如果是 AWS 或 Azure 等雲端平台。 如何在 IronPDF 中啟用原生日誌記錄 將日誌檔案附加到錯誤報告中,能使我們快速定位問題並解決問題的機率提高一倍以上。 請將此程式碼放在程式碼頂部,在執行任何 IronPDF 方法之前(2021.3.1 之後的所有版本)。 // Enable debugging to generate detailed log files for troubleshooting. IronPdf.Logging.Logger.EnableDebugging = true; // Set the path for the log file. You can specify a directory name or a full file path. IronPdf.Logging.Logger.LogFilePath = "Default.log"; // Set the logging mode to log all events. IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All; // Enable debugging to generate detailed log files for troubleshooting. IronPdf.Logging.Logger.EnableDebugging = true; // Set the path for the log file. You can specify a directory name or a full file path. IronPdf.Logging.Logger.LogFilePath = "Default.log"; // Set the logging mode to log all events. IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All; ' Enable debugging to generate detailed log files for troubleshooting. IronPdf.Logging.Logger.EnableDebugging = True ' Set the path for the log file. You can specify a directory name or a full file path. IronPdf.Logging.Logger.LogFilePath = "Default.log" ' Set the logging mode to log all events. IronPdf.Logging.Logger.LoggingMode = IronPdf.Logging.Logger.LoggingModes.All $vbLabelText $csharpLabel IronPDF 產生的日誌檔案位於專案/bin目錄中,也就是 DLL 檔案部署所在的目錄: default.log (部署流程) cef.log (渲染) IronSoftwareCefSubprocess.log (渲染和線程) IronSoftwareEngine.log (用於偵錯以"從...產生 PDF 時出錯"開頭的異常) 雲端伺服器通常會為日誌檔案指定特定的存放位置。 我們有關於在Azure和AWS中產生日誌檔案的指南。 Curtis Chau 立即與工程團隊聊天 技術作家 Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。 準備好開始了嗎? Nuget 下載 16,493,056 | Version: 2025.11 剛發表 免費下載 NuGet 下載總數:16,493,056 檢視授權