Using IronOCR License Keys

This article was translated from English: Does it need improvement?
Translated
View the article in English

How to Get a License Key

Adding an IronOCR 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 IronOCR

Comience a usar IronOCR en su proyecto hoy con una prueba gratuita.

Primer Paso:
green arrow pointer

Install via DLL

Download the IronOcr DLL directly to your machine.

Install via NuGet

Alternatively, you can install through NuGet.

# Run the following command in your terminal to install IronOcr via NuGet
nuget install IronOcr
# Run the following command in your terminal to install IronOcr via NuGet
nuget install IronOcr
SHELL

Step 2: Apply Your License Key

Set your IronOCR license key using code

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

// Set your IronOCR license key at the beginning of your application
IronOcr.License.LicenseKey = "IRONOCR-MYLICENSE-KEY-1EF01";
// Set your IronOCR license key at the beginning of your application
IronOcr.License.LicenseKey = "IRONOCR-MYLICENSE-KEY-1EF01";
' Set your IronOCR license key at the beginning of your application
IronOcr.License.LicenseKey = "IRONOCR-MYLICENSE-KEY-1EF01"
$vbLabelText   $csharpLabel

You can validate that your software is licensed using either IronOcr.License.IsValidLicense(string LicenseKey) or the IronOcr.License.IsLicensed property.


Set your license key 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>
    <!-- Set your IronOCR license key here -->
    <add key="IronOcr.LicenseKey" value="IRONOCR-MYLICENSE-KEY-1EF01"/>
  </appSettings>
  ...
</configuration>
<configuration>
  ...
  <appSettings>
    <!-- Set your IronOCR license key here -->
    <add key="IronOcr.LicenseKey" value="IRONOCR-MYLICENSE-KEY-1EF01"/>
  </appSettings>
  ...
</configuration>
XML

There is a known licensing issue between IronOcr version 2023.4.13 - 2024.3.4 on project:

  • 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 key using a .NET Core appsettings.json file

To apply a key globally to your application with .NET Core:

  • Add a JSON file to your project called appsettings.json in the root directory of your project.
  • Add a 'IronOcr.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.
  • Ensure that IronOcr.License.IsLicensed returns true to verify.

File: appsettings.json

{
  "IronOcr.LicenseKey": "IRONOCR-MYLICENSE-KEY-1EF01"
}

Step 3: Test your key

Test if your key has been installed correctly.

// Validate the license key
bool result = IronOcr.License.IsValidLicense("IRONOCR-MYLICENSE-KEY-1EF01");
// Validate the license key
bool result = IronOcr.License.IsValidLicense("IRONOCR-MYLICENSE-KEY-1EF01");
' Validate the license key
Dim result As Boolean = IronOcr.License.IsValidLicense("IRONOCR-MYLICENSE-KEY-1EF01")
$vbLabelText   $csharpLabel

Step 4: Get started with your project

Follow our tutorial on how to Get Started with IronOCR.


Questions?

If you have any questions, reach out to support@ironsoftware.com

Preguntas Frecuentes

¿Cómo puedo obtener una clave de licencia para mi proyecto .NET OCR?

Puede comprar una clave de licencia o registrarse para una clave de prueba gratuita de 30 días en el sitio web de IronOCR. Esto le permite desplegar su proyecto sin restricciones o marcas de agua.

¿Cuáles son los pasos para instalar IronOCR a través de DLL?

Para instalar IronOCR a través de DLL, descargue el DLL de IronOCR directamente desde el sitio web de IronOCR a su computadora e inclúyalo en su proyecto.

¿Cómo puedo instalar IronOCR usando NuGet?

Puede instalar IronOCR usando NuGet ejecutando el comando nuget install IronOcr en su terminal.

¿Cómo aplico una clave de licencia en mi aplicación C#?

Agregue el código IronOcr.License.LicenseKey = "SU-CLAVE-DE-LICENCIA"; al inicio de su aplicación para aplicar la clave de licencia.

¿Puedo establecer mi clave de licencia de IronOCR usando archivos de configuración?

Sí, puede establecer su clave de licencia globalmente usando Web.Config o App.Config agregándola a la sección appSettings, o para aplicaciones .NET Core, usando el archivo appsettings.json.

¿Qué debo hacer si mi clave de licencia no se reconoce en Web.Config?

Para proyectos ASP.NET y versiones del .NET Framework >= 4.6.2, hay un problema conocido donde la clave en Web.config podría no ser reconocida. Refiera al artículo de solución de problemas en el sitio web de IronOCR para más detalles.

¿Cómo pruebo si mi clave de licencia de IronOCR está instalada correctamente?

Use el método IronOcr.License.IsValidLicense("SU-CLAVE-DE-LICENCIA") para validar si su clave de licencia está correctamente instalada.

¿Qué debo hacer si encuentro problemas con las claves de licencia de IronOCR?

Si encuentra algún problema, puede comunicarse con el soporte de Iron Software en support@ironsoftware.com para obtener asistencia.

¿IronOCR es compatible con .NET 10 cuando se utilizan claves de licencia?

Sí. IronOCR es compatible con .NET 10 y los métodos de aplicación de claves de licencia (como mediante código, Web.Config/App.Config o appsettings.json) funcionan en proyectos .NET 10 igual que en versiones anteriores compatibles. ([ironsoftware.com](https://ironsoftware.com/csharp/ocr/features/compatibility/?utm_source=openai))

Curtis Chau
Escritor Técnico

Curtis Chau tiene una licenciatura en Ciencias de la Computación (Carleton University) y se especializa en el desarrollo front-end con experiencia en Node.js, TypeScript, JavaScript y React. Apasionado por crear interfaces de usuario intuitivas y estéticamente agradables, disfruta trabajando con frameworks modernos y creando manuales bien ...

Leer más
¿Listo para empezar?
Nuget Descargas 5,044,537 | Versión: 2025.11 recién lanzado