無法連線至授權伺服器

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大學的電腦科學學士學位,專精於前端開發,擁有Node.js、TypeScript、JavaScript和React的專業知識。Curtis熱衷於建立直觀且美觀的使用者介面,喜愛使用現代框架並建立結構良好、視覺吸引力的手冊。

除了開發,Curtis對物聯網(IoT)有濃厚的興趣,探索創新的方法來整合硬體和軟體。在空閒時間,他喜歡玩遊戲和建立Discord機器人,結合他對技術的熱愛與創造力。

準備開始了嗎?
Nuget 下載 19,936,792 | 版本: 2026.7 剛剛發布
Still Scrolling Icon

還在捲動嗎?

想快速獲得證明嗎? PM > Install-Package IronPdf
執行範例 看您的HTML變成PDF。