Apply a license key in IronPDF
The license key is a long string that ends with the license support expiry date. Please ensure this is copied correctly.
IRONPDF-MYLICENSE-KEY-1EF01-EXPIRES.01.JAN.2050
Any additional spaces or characters in the license key string will result in below error
Unhandled exception. IronSoftware.Exceptions.LicensingException: IronPDF must be licensed for development.
The most robust method of applying a license key is directly in your code, before the library is called.
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"
Please note
For more options, including web.config and appsettings.json, please see the following how-to page for more information: IronPDF License Keys