IronPDF 故障排除 在 IronPDF 中应用许可密钥 Applying IronPDF License Key to Projects Curtis Chau 更新日期:7月 22, 2025 Download IronPDF NuGet 下載 DLL 下載 Windows 安裝程式 Start Free Trial Copy for LLMs Copy for LLMs Copy page as Markdown for LLMs Open in ChatGPT Ask ChatGPT about this page Open in Gemini Ask Gemini about this page Open in Grok Ask Grok about this page Open in Perplexity Ask Perplexity about this page Share Share on Facebook Share on X (Twitter) Share on LinkedIn Copy URL Email article This article was translated from English: Does it need improvement? Translated View the article in English 授權金鑰是一串結尾帶有授權支援到期日期的長字符串。 請確保正確複製這段內容。 IRONPDF-MYLICENSE-KEY-1EF01-EXPIRES.01.JAN.2050 授權金鑰字符串中的任何額外空格或字符都將導致以下錯誤: Unhandled exception. IronSoftware.Exceptions.LicensingException: IronPDF must be licensed for development. 應用授權金鑰的最可靠方法是在調用庫之前直接在代碼中進行。 // Set the license key for IronPDF before making any calls to the library. IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-EXPIRES.01.JAN.2050"; // Set the license key for IronPDF before making any calls to the library. IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-EXPIRES.01.JAN.2050"; ' Set the license key for IronPDF before making any calls to the library. IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-EXPIRES.01.JAN.2050" $vbLabelText $csharpLabel [{i:(從 IronPdf 版本 2024.1.20 開始,用戶至少需要擁有一個免費的試用授權金鑰才能在專案中使用 IronPDF 庫。 專案中缺少授權金鑰將導致上述的 LicensingException 錯誤。)] 有关更多選項,包括web.config 和 appsettings.json,請參閱以下如何操作頁面以獲取更多信息: IronPDF 授權金鑰 Curtis Chau 立即與工程團隊聊天 技術作家 Curtis Chau 擁有卡爾頓大學計算機科學學士學位,專注於前端開發,擅長於 Node.js、TypeScript、JavaScript 和 React。Curtis 熱衷於創建直觀且美觀的用戶界面,喜歡使用現代框架並打造結構良好、視覺吸引人的手冊。除了開發之外,Curtis 對物聯網 (IoT) 有著濃厚的興趣,探索將硬體和軟體結合的創新方式。在閒暇時間,他喜愛遊戲並構建 Discord 機器人,結合科技與創意的樂趣。 準備好開始了嗎? Nuget 下載 16,154,058 | 版本: 2025.11 剛剛發布 免費 NuGet 下載 總下載量:16,154,058 查看許可證