無法連線至授權伺服器

This article was translated from English: Does it need improvement?
Translated
View the article in English

在 IronPDF 的當前版本(2024.10.x)中,部分客戶即使具備有效的網際網路連線,仍可能會遇到以下例外錯誤:

Exception: IronPdf was unable to establish a connection to the licensing server. A valid internet connection is required for TEAM-type License Keys. In restricted environments, you need to whitelist: https://licensingapimanager.azure-api.net. For projects that require offline air-gapped environments with unlimited developers, projects, and locations, please consider the Unlimited Enterprise License at https://ironpdf.com/licensing/?utm_source=errormsg. For help, please reach out to us at https://ironsoftware.com

原因

根本原因在於 IronPDF 授權伺服器的超時設定。 當連線超時時,內部程序會將其視為連線中斷,並觸發上述錯誤訊息。

替代方案

目前尚無直接解決此問題的方法。 不過,您可以嘗試以下臨時解決方案:

  • 重新啟動專案:只需重新執行專案,即可協助建立與授權伺服器的成功連線。
  • 檢查防火牆與網路限制:請確認所需網址 (https://licensingapimanager.azure-api.net) 已列入白名單,且未遭網路政策或安全軟體封鎖。

升級至Enterprise授權亦可避免此問題,因該函式庫完全離線運作且不會將任何資訊上傳至雲端,使其適用於氣隙環境。

Curtis Chau
技術撰稿人

Curtis Chau 擁有卡爾頓大學(Carleton University)的電腦科學學士學位,專精於前端開發,並精通 Node.js、TypeScript、JavaScript 及 React。他熱衷於打造直觀且美觀的用戶介面,喜歡運用現代框架,並創建結構完善、視覺上吸引人的手冊。

除了開發工作之外,Curtis 對物聯網(IoT)抱有濃厚興趣,致力於探索整合硬體與軟體的創新方法。閒暇時,他喜歡玩遊戲和開發 Discord 機器人,將對科技的熱愛與創意相結合。

準備開始了嗎?
Nuget 下載 18,926,724 | 版本: 2026.5 just released
Still Scrolling Icon

還在往下捲動嗎?

想要快速確認成果嗎? PM > Install-Package IronPdf
執行範例 觀看您的 HTML 轉為 PDF。