將 IronPDF 許可金鑰應用於專案
2022年1月19日
已更新 2024年10月20日
This article was translated from English: Does it need improvement?
TranslatedView the article in English
許可證密鑰是一個長字符串,以許可支持到期日期結尾。 請確保此內容已正確複製。
IRONPDF-MYLICENSE-KEY-1EF01-EXPIRES.01.JAN.2050
授權金鑰字串中任何額外的空格或字符都會導致以下錯誤
Unhandled exception. IronSoftware.Exceptions.LicensingException: IronPDF must be licensed for development.
在您的程式碼中,在調用庫之前,最穩健的方法是直接應用許可證密鑰。
IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-EXPIRES.01.JAN.2050";
IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-EXPIRES.01.JAN.2050";
IronPdf.License.LicenseKey = "IRONPDF-MYLICENSE-KEY-EXPIRES.01.JAN.2050"
$vbLabelText $csharpLabel
試用授權碼才能在其項目中使用 IronPDF 庫。 專案中缺少授權金鑰將會引發上述錯誤。
如需更多選項,包括 web.config 和 appsettings.json,請參閱以下如何操作頁面以獲取更多資訊:IronPDF License Keys