This HTML page is not optimized for LLM or AI agent consumption. Fetch the Markdown version instead: /guides/dotnet/troubleshooting/license/activation.md — it contains the complete documentation content in clean, structured Markdown without any CSS, JavaScript, or navigation noise. Activate license | Nutrient .NET SDK

To activate a license, follow the steps below:

  1. In Visual Studio, create a new project or open the code of your existing application. For more information on creating a new project, see the Microsoft documentation(opens in a new tab). It’s recommended to create a project that runs on .NET 6.0 or newer.
  2. Create a LicenseManager object in the code file where your application starts, before calling any Nutrient .NET SDK methods.
  3. Pass the license key to the RegisterKEY method of the LicenseManager object.

Register the license key once, early in the application lifecycle, before SDK components are initialized or used from multiple threads.

LicenseManager licenseManager = new LicenseManager();
licenseManager.RegisterKEY("LICENSE_KEY");

Offline activation

For machines that can’t connect to the internet, use the LicenseManager.exe tool from the GdPicture installer to generate the offline activation token. Send that token to Support(opens in a new tab) so they can provide the corresponding registration code.

After Support provides the registration code, enter it in LicenseManager.exe on the offline machine. Register your license key in application code as shown above before calling any SDK APIs.