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 here 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.
Install-Package IronQR
https://www.nuget.org/packages/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 this code to the startup of your application, before IronQR is used.
IronQR.License.LicenseKey = "IronQR-MYLICENSE-KEY-1EF01";
IronQR.License.LicenseKey = "IronQR-MYLICENSE-KEY-1EF01";
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 key="IronQR.LicenseKey" value="IronQR-MYLICENSE-KEY-1EF01"/>
</appSettings>
...
</configuration>
There is a known licensing issue with IronQR version released before 2024.3.2 on project:
- ASP.NET projects
- .NET Framework version >= 4.6.2
The key stored in a Web.config
file is NOT being picked up and used by the product. Visit the 'Setting License Key in Web.config' troubleshooting article to learn more.
Ensure that IronQR.License.IsLicensed
returns true
to verify.
Set your license key using a .NET Core appsettings.json file
To apply a key globally to your application to a .NET Core:
- Add a JSON file to your project called appsettings.json in the root directory of your project
- Add a
IronQR.LicenseKey
key to your JSON config file. The value should be your license key. - Ensure that the file properties include Copy to Output Directory: Copy always
File: appsettings.json
{
"IronQR.LicenseKey":"IronQR-MYLICENSE-KEY-1EF01"
}
Step 3: Test your key
Test if your key has been installed correctly.
bool result = IronQR.License.IsValidLicense("IronQR-MYLICENSE-KEY-1EF01");
// Check if IronQR is licensed successfully
bool is_licensed = IronQR.License.IsLicensed;
bool result = IronQR.License.IsValidLicense("IronQR-MYLICENSE-KEY-1EF01");
// Check if IronQR is licensed successfully
bool is_licensed = IronQR.License.IsLicensed;
Dim result As Boolean = IronQR.License.IsValidLicense("IronQR-MYLICENSE-KEY-1EF01")
' Check if IronQR is licensed successfully
Dim is_licensed As Boolean = IronQR.License.IsLicensed
Step 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