Ironpdf | License Key

License.LicenseKey = licenseKey;

Ensure the license key assignment is the first line of your Main() or Startup method. If using ASP.NET, place it in Program.cs before builder.Build() . Error 2: "Your trial has expired" Cause: Your 30-day trial key has passed its expiration date. ironpdf license key

Introduction If you are a .NET developer, chances are you have encountered IronPDF —the powerful HTML-to-PDF library that allows you to generate, edit, and sign PDF documents using C# and VB.NET. However, after finishing your trial or cloning a legacy project, one question inevitably appears: Where do I find my IronPDF license key, and how do I apply it correctly? License

IronPdf.License.LicenseKey = Environment.GetEnvironmentVariable("IRONPDF_LICENSE"); After applying the key, you should verify that IronPDF has accepted it. Use the IsValidLicense() method: Introduction If you are a