Using Iron Barcode 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

Start using IronBarcode in your project today with a free trial.

First Step:
green arrow pointer

Install via NuGet

Before we start, we need to install the latest version of the Barcode NuGet Package.

Install-Package BarCode

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";
// Apply your IronBarcode license key
IronBarCode.License.LicenseKey = "IRONBARCODE-MYLICENSE-KEY-1EF01";
' Apply your IronBarcode license key
IronBarCode.License.LicenseKey = "IRONBARCODE-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 key="IronBarCode.LicenseKey" value="IRONBARCODE-MYLICENSE-KEY-1EF01"/>
  </appSettings>
  ...
</configuration>
<configuration>
  ...
  <appSettings>
    <add key="IronBarCode.LicenseKey" value="IRONBARCODE-MYLICENSE-KEY-1EF01"/>
  </appSettings>
  ...
</configuration>
XML

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.json in the root directory of your project.
  • Add a IronBarCode.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

{
  "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
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.IsLicensed
$vbLabelText   $csharpLabel

Step 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 can I obtain a license key for my C# project?

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

What are the steps to install IronBarcode via NuGet in C#?

To install IronBarcode via NuGet, use the command: :ProductInstall. More information can be found on the NuGet package page.

Is there an alternative way to install IronBarcode without NuGet?

Yes, you can download the IronBarcode.dll directly and add it to your project from our packages page.

How do I apply a license key in a C# application using code?

Add the following code in your application startup: IronBarCode.License.LicenseKey = "YOUR-LICENSE-KEY";.

How can I set a license key using a configuration file in .NET?

Add the license key in the appSettings section of your Web.Config or App.Config file with the key IronBarCode.LicenseKey.

What is the method to apply a license key in a .NET Core appsettings.json file?

Add a 'IronBarCode.LicenseKey' key to your appsettings.json file with your license key as the value. Ensure the file is set to *Copy to Output Directory: Copy always*.

What should I do if the license key in Web.config is not recognized?

There is a known issue between specific versions where the key is not being picked up. Visit our troubleshooting article for guidance.

How can I check if my license key is valid in C#?

You can use IronBarCode.License.IsValidLicense("YOUR-LICENSE-KEY") to verify the key and IronBarCode.License.IsLicensed to check if it's licensed.

Where can I find a tutorial to start using IronBarcode?

Follow our tutorial on how to get started with IronBarcode on our documentation page.

How can I contact support for questions about IronBarcode?

For any questions, reach out via email to support@ironsoftware.com.

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.