Using IronBarcode License Keys
How to Get a License Key
Adding an IronBarcode 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 IronBarcode
Install via NuGet
Before we start, we need to install the latest version of the Barcode NuGet Package.
You can find more information about the NuGet package here.
Install via DLL
As an alternative, the IronBarcode.dll could also be downloaded and added to your project.
Step 2: Apply Your License Key
Set your license using code
Add this code somewhere in the startup of your application, before IronBarcode is used.
// Apply your IronBarcode license key
IronBarCode.License.LicenseKey = "IRONBARCODE-MYLICENSE-KEY-1EF01";Imports IronBarCode
' Apply your IronBarcode license key
IronBarCode.License.LicenseKey = "IRONBARCODE-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="IronBarCode.LicenseKey" value="IRONBARCODE-MYLICENSE-KEY-1EF01"/>
</appSettings>
...
</configuration>
There is a known licensing issue between IronBarcode versions 2023.4.1 - 2024.3.2 with the following frameworks:
- 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.
Set your license key using a .NET Core appsettings.json file
To apply a key globally to your application in a .NET Core project:
- Add a JSON file to your project called
appsettings.jsonin the root directory of your project. - Add a
IronBarCode.LicenseKeykey 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
{
"IronBarCode.LicenseKey": "IRONBARCODE-MYLICENSE-KEY-1EF01"
}
Step 3: Test your key
Test if your key has been installed correctly.
// Verify if the provided license key is valid
bool result = IronBarCode.License.IsValidLicense("IRONBARCODE-MYLICENSE-KEY-1EF01");
// Check if IronBarCode is licensed successfully
bool is_licensed = IronBarCode.License.IsLicensed;' Verify if the provided license key is valid
Dim result As Boolean = IronBarCode.License.IsValidLicense("IRONBARCODE-MYLICENSE-KEY-1EF01")
' Check if IronBarCode is licensed successfully
Dim is_licensed As Boolean = IronBarCode.License.IsLicensedStep 4: Get started with your project
Follow our tutorial on how to Get Started with IronBarcode.
Questions?
If you have any questions, reach out to support@ironsoftware.com
Frequently Asked Questions
How do I obtain a license key for IronBarcode?
You can buy a license key directly from the IronBarcode website or sign up for a free 30-day trial to obtain a temporary key.
How can I install IronBarcode in my project?
IronBarcode can be installed via the NuGet Package Manager or by downloading the IronBarcode.dll file and adding it manually to your project.
How do I apply a license key in IronBarcode using code?
To apply a license key in IronBarcode, add the following code to your application's startup: `IronBarCode.License.LicenseKey = "YOUR-LICENSE-KEY";`
Can I set the IronBarcode license key using the Web.Config or App.Config files?
Yes, you can set the license key by adding a key-value pair in your Web.Config or App.Config under the appSettings section.
Is there a known issue with setting the license key in Web.config for certain IronBarcode versions?
Yes, there is a known issue with ASP.NET projects and .NET Framework version >= 4.6.2 where the key in Web.config is not picked up, affecting IronBarcode versions from 2023.4.1 to 2024.3.2.
How do I configure the IronBarcode license key in a .NET Core app?
Create an `appsettings.json` file in your project root, add the `IronBarCode.LicenseKey` key, and set its value to your license key. Ensure this file is set to always copy to the output directory.
How can I verify if my IronBarcode license key is valid?
Use the method `IronBarCode.License.IsValidLicense("YOUR-LICENSE-KEY")` to verify if the provided key is valid in your application.
What steps should I take if IronBarcode is not showing as licensed?
Ensure that the license key is correctly set in your application and check for any known issues as documented on the Iron Software website.
Where can I get more help with IronBarcode license key issues?
For additional assistance, you can reach out to Iron Software support at support@ironsoftware.com, or visit their troubleshooting articles for more information.

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.