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.
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"
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>
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
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 an IronBarcode license key?
You can buy a license key from our licensing page or sign up for a free 30-day trial key.
How do I install IronBarcode via NuGet?
To install IronBarcode via NuGet, use the command: nuget install Barcode.
Can I download the IronBarcode DLL directly?
Yes, you can download the IronBarcode.dll and add it to your project from our packages page.
How do I apply my IronBarcode license key using code?
Add the following code in your application startup: IronBarCode.License.LicenseKey = "YOUR-LICENSE-KEY".
How do I set a license key using Web.Config or App.Config?
Add the license key in the appSettings section of your Web.Config or App.Config file.
How can I set 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.
What should I do if my key in Web.config is not being picked up?
There is a known issue with certain versions. Visit our troubleshooting article for guidance.
How can I test if my IronBarcode license key is correctly installed?
Use IronBarCode.License.IsValidLicense method to verify the key and IronBarCode.License.IsLicensed to check if it's licensed.
Where can I find a tutorial to get started with IronBarcode?
You can follow our tutorial on the 'Get Started with IronBarcode' page.
Who can I contact if I have questions about IronBarcode?
For any questions, reach out to support@ironsoftware.com.