Using IronQR License Keys
How to Get a License Key
Adding an IronQR license key allows you to deploy your project live without restrictions or watermarks.
You can buy a license key or sign up for a free 30 day trial key here.
Step 1: Download the Latest Version of IronQR
Install via NuGet
Install the latest version of the IronQR NuGet Package using the following command:
For more information, visit the NuGet package page for IronQR.
Install via DLL
As an alternative, the IronQR.Dll can be downloaded and added to your project as a reference.
Step 2: Apply Your License Key
Set your license using code
Add the following code at the startup of your application, before using IronQR, to set your license key:
// Set the license key for IronQR before using the library
IronQr.License.LicenseKey = "IronQR_MYLICENSE_KEY_1EF01";' Set the license key for IronQR before using the library
IronQr.License.LicenseKey = "IronQR_MYLICENSE_KEY_1EF01"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 your IronQR License Key here -->
<add key="IronQR.LicenseKey" value="IronQR-MYLICENSE-KEY-1EF01"/>
</appSettings>
...
</configuration>
Note: There is a known licensing issue with IronQR versions released before 2024.3.2 on projects:
- ASP.NET projects
- .NET Framework version >= 4.6.2
The key stored in a Web.config file may NOT be picked up and used by the product. Visit the troubleshooting article to learn more.
Ensure that IronQR.License.IsLicensed returns true to verify the license is applied successfully.
Set your license key using a .NET Core appsettings.json file
To apply a key globally to your .NET Core application:
- Add a JSON file to your project called
appsettings.jsonin the root directory. - Add a
IronQR.LicenseKeykey to your JSON config file. The value should be your license key. - Ensure the file property Copy to Output Directory is set to Copy always.
File: appsettings.json
{
"IronQR.LicenseKey": "IronQR-MYLICENSE-KEY-1EF01"
}
Step 3: Test your key
Test if your key has been installed correctly using the following code:
// Validate the license key
bool result = IronQr.License.IsValidLicense("IronQR-MYLICENSE-KEY-1EF01");
// Check if IronQR is licensed successfully
bool isLicensed = IronQr.License.IsLicensed;' Validate the license key
Dim result As Boolean = IronQr.License.IsValidLicense("IronQR-MYLICENSE-KEY-1EF01")
' Check if IronQR is licensed successfully
Dim isLicensed As Boolean = IronQr.License.IsLicensedStep 4: Get started with your project
Follow our tutorial on how to Get Started with IronQR.
Questions?
If you have any questions, reach out to support@ironsoftware.com
Frequently Asked Questions
How can I acquire a license key for IronQR?
You can purchase an IronQR license key directly from the Iron Software website or sign up for a free 30-day trial key to get started.
What is the recommended way to install IronQR?
The recommended way to install IronQR is through the NuGet Package Manager using the provided installation command for IronQR.
How do I apply a license key in my C# application using code?
In your C# application, set the license key by adding the code `IronQr.License.LicenseKey = "Your_License_Key";` at the startup before using any IronQR functionality.
Can I set the IronQR license key using Web.Config or App.Config?
Yes, you can set the IronQR license key in the Web.Config or App.Config files under the appSettings section for global application access.
How can I verify if my IronQR license key is applied successfully?
To verify your IronQR license key, ensure that `IronQR.License.IsLicensed` returns `true`, confirming the key was applied successfully.
Is there an issue with IronQR licensing on certain .NET versions?
Yes, there is a known issue with IronQR versions before 2024.3.2 in ASP.NET and .NET Framework projects of version >= 4.6.2, where the key in Web.config might not be used correctly.
What should be done to set the IronQR license key in a .NET Core application?
For .NET Core applications, add a `appsettings.json` file with `IronQR.LicenseKey` set to your license key, and ensure it is copied to the output directory.
How can I ensure the JSON configuration file is always included during builds?
Make sure the appsettings.json file's property 'Copy to Output Directory' is set to 'Copy always' to ensure it is included during builds.

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.