DEV Community

IronSoftware
IronSoftware

Posted on • Originally published at ironsoftware.com

2 2

Using Iron Barcode License Keys

Get Your License Key

IronBarcode license keys allow you to deploy your project live without any watermark.

Licenses start at just $499 and include one free year of support and updates.

You can also try IronBarcode free for 30 days with a trial license key.

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.

PM > Install-Package Barcode

https://www.nuget.org/packages/BarCode/

Install via DLL

As an alternative, the IronBarCode.Dll can be downloaded and added to your project as a reference from [.Net Barcode DLL].


Step 2: Apply Your License Key

Set your license using code

Add this code to the startup of your application, before IronBarcode is used.

C#:

IronBarCode.License.LicenseKey = "IRONBARCODE-MYLICENSE-KEY-1EF01";
Enter fullscreen mode Exit fullscreen mode

VB:

IronBarCode.License.LicenseKey = "IRONBARCODE-MYLICENSE-KEY-1EF01"
Enter fullscreen mode Exit fullscreen mode

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>
Enter fullscreen mode Exit fullscreen mode

Set your license key using a .Net Core appsettings.json file

To apply a key globally to your application to a .Net Core:

  • 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"

}  
Enter fullscreen mode Exit fullscreen mode

Step 3: Test your key

Test if your key has been installed correctly.

C#:

bool result = IronBarCode.License.IsValidLicense("IRONBARCODE-MYLICENSE-KEY-1EF01");
Enter fullscreen mode Exit fullscreen mode

VB:

Dim result As Boolean = IronBarCode.License.IsValidLicense("IRONBARCODE-MYLICENSE-KEY-1EF01")
Enter fullscreen mode Exit fullscreen mode

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 developers@ironsoftware.com

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay