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:

Install-Package IronQR

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 the license key for IronQR before using the library
IronQR.License.LicenseKey = "IronQR-MYLICENSE-KEY-1EF01"
$vbLabelText   $csharpLabel

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>
<configuration>
  ...
  <appSettings>
    <!-- Add your IronQR License Key here -->
    <add key="IronQR.LicenseKey" value="IronQR-MYLICENSE-KEY-1EF01"/>
  </appSettings>
  ...
</configuration>
XML

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.json in the root directory.
  • Add a IronQR.LicenseKey key 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
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.IsLicensed
$vbLabelText   $csharpLabel

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

Frequently Asked Questions

How can I obtain an IronQR license key?

You can purchase a license key or sign up for a free 30-day trial key by visiting our licensing page.

How do I install IronQR using NuGet?

You can install the latest version of the IronQR NuGet Package using the command: nuget install IronQR.

How do I apply my IronQR license key in code?

Set your license key in your application startup code with: IronQR.License.LicenseKey = "Your-License-Key".

Can I set my IronQR license key using a config file?

Yes, you can set your license key in the Web.Config or App.Config files by adding it to the appSettings section.

Is there a known issue with using the license key in Web.Config?

Yes, there is a known issue with IronQR versions released before 2024.3.2 on ASP.NET projects or .NET Framework version >= 4.6.2, where the key in Web.config may not be picked up.

How do I apply my IronQR license key in a .NET Core application?

Add a JSON file named appsettings.json to your project, include the IronQR.LicenseKey, and set the file property to 'Copy always' in the output directory.

How can I test if my IronQR license key is applied correctly?

Use the code: IronQR.License.IsValidLicense("Your-License-Key") to validate your key and check IronQR.License.IsLicensed to ensure it is applied.

Where can I find troubleshooting information for licensing issues?

Visit our troubleshooting article for detailed information on resolving licensing issues with IronQR.

What should I do if I have questions about IronQR licensing?

If you have any questions, please reach out to our support team at support@ironsoftware.com.