IRONSOFTWAREHOME

Apply a license key in IronQR

Curtis Chau
Curtis Chau
Updated: May 9, 2026

Set your license using code

The license key is a long string that ends with an expiry date. Please ensure this is copied correctly, with no spaces.

IronQR-MYLICENSE-KEY-1EF01-RENEW.SUPPORT.01.JAN.2050
Text

The most robust method of applying a license key is directly in your code, before the library is called.


Set your license using Web.Config or App.Config

To apply a key globally to your application using Web.Config or App.Config, add the following key to your config file in appSettings.

<configuration>
    ....
    <appSettings>
        <add key="IronQr.LicenseKey" value="IRONQR-MYLICENSE-KEY-1EF01"/>
    </appSettings>
    ....
</configuration>
XML

Set your license key using a .NET Core appsettings.json file

To apply a key globally to your application in a .NET Core application:

  1. Add a JSON file to your project called appsettings.json in the root directory of your project.
  2. Add an IronQr.LicenseKey key to your JSON config file. The value should be your license key.
  3. Ensure that the file properties include Copy to Output Directory: Copy always.

File: appsettings.json

{
    "IronQr.LicenseKey": "IRONQR-MYLICENSE-KEY-1EF01"
}
JSON

Test your key

Test if your key has been installed correctly by checking if the license is valid and whether IronQR is licensed successfully.

// Validate the license key
bool result = IronQr.License.IsValidLicense("IRONQR-MYLICENSE-KEY-1EF01");

// Check if IronQR is licensed successfully 
bool isLicensed = IronQr.License.IsLicensed;

// Output the results
Console.WriteLine("IsValidLicense: " + result);
Console.WriteLine("IsLicensed: " + isLicensed);
Curtis Chau
Technical Writer

Curtis Chau holds a Bachelor’s degree in Computer Science (Carleton University) and specializes in front-end development with expertise in Node.js, TypeScript, JavaScript, and React. Passionate about crafting intuitive and aesthetically pleasing user interfaces, Curtis enjoys working with modern frameworks and creating well-structured, visually appealing manuals.

...
Read More

Ready to Get Started?

Nuget Downloads 74,386Version:2026.9just released

Get your free 30-day Trial Key instantly.
No credit card or account creation required
C# NuGet Library for PDF
Install with NuGet

Version: 2026.9

PM > Install-Package IronQR
nuget.org/packages/IronQR/
  1. In Solution Explorer, right-click References, Manage NuGet Packages
  2. Select Browse and search "IronQR"
  3. Select the package and install
C# PDF DLL
Download DLL

Version: 2026.9

  1. Download and unzip IronQR to a location such as ~/Libs within your Solution directory
  2. In Visual Studio Solution Explorer, right click References. Select Browse, "IronQR.dll"

Licenses from $999

Key in blue circle

Get your free 30-day Trial Key instantly.

Your trial license will be sent to your email address

No limitations. 100% unlocked. No credit card.

bullet_checkedNo credit card or account creation requiredNo limitations. 100% unlocked. No credit card.
  • Logo Aetna
  • Logo NASA
  • Logo GE
  • Logo Porsche
  • Logo USDA
  • Logo Qatar
Join Millions of Engineers who’ve tried IronPDF
Book your free Live Demo
Booking Badge

Trusted by Millions of Engineers Worldwide

Iron Software's customer logos
Get Your No-Obligation Consult
Complete the form below or email sales@ironsoftware.com
Your details will always be kept confidential.
Trusted by Millions of Engineers Worldwide
Iron Software's customer logos
Get your free 30-day Trial Key instantly.
No credit card or account creation required