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 get a license key for IronQR?

You can obtain a license key by purchasing it or signing up for a free 30-day trial on the IronQR licensing page.

What are the steps to install IronQR using NuGet?

To install IronQR using NuGet, use the command: nuget install IronQR and follow the instructions on the NuGet package page.

How can I apply my IronQR license key in a C# application?

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

Can I configure the IronQR license key in Web.Config?

Yes, you can add the license key to the appSettings section of your Web.Config file. However, note the known issue with versions before 2024.3.2 on ASP.NET projects where the key might not be picked up.

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

Add a JSON file named appsettings.json to your project and include your license key under IronQR.LicenseKey. Ensure the file property is set to 'Copy always'.

How do I test if my IronQR license key is working?

Use IronQR.License.IsValidLicense("Your-License-Key") and IronQR.License.IsLicensed to validate and ensure the license is applied.

What should I do if my IronQR license key is not recognized in Web.Config?

For versions before 2024.3.2 on ASP.NET projects, the key might not be picked up. Check the troubleshooting article for solutions.

Is there support available for IronQR license key issues?

Yes, if you encounter any issues, you can reach out to the support team at support@ironsoftware.com for assistance.

What configurations are necessary for using IronQR in a .NET Framework project?

For .NET Framework projects, set the license key in the Web.Config or App.Config file under the appSettings section.

Where can I download the IronQR DLL for manual installation?

You can download the IronQR DLL from the Iron Software website and add it as a reference in your project.

Chaknith Bin
Software Engineer
Chaknith works on IronXL and IronBarcode. He has deep expertise in C# and .NET, helping improve the software and support customers. His insights from user interactions contribute to better products, documentation, and overall experience.
Talk to an Expert Five Star Trust Score Rating

Ready to Get Started?

Nuget Passed