Skip to content

Commit 91c4798

Browse files
authored
Merge pull request #806 from telerik/dkrastev/m-KB
KB: Validate License Key in Add-in
2 parents 1875f81 + 41e00c5 commit 91c4798

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
---
2+
title: Telerik License Watermark Appears When UI for WinForms Form is Used in Add-In Project
3+
description: The invalid or missing Telerik license key warning is displayed in an Add-In project, like Excel/Word VST, and others.
4+
page_title: Telerik License Key Invalid or Missing Message Box and Watermark Displayed in a Add-in/Plugin Project
5+
type: troubleshooting
6+
slug: add-license-key-in-add-in-project
7+
position: 0
8+
tags: licensing, installation, telerik, licensing, license, key, not, found, addin
9+
res_type: kb
10+
---
11+
12+
## Environment
13+
14+
|Product Version|Product|Author|
15+
|----|----|----|
16+
|2025.3.812|Telerik UI for WinForms|[Dinko Krastev](https://www.telerik.com/blogs/author/dinko-krastev)|
17+
18+
## Description
19+
20+
The invalid/missing Telerik license key dialog is shown in addin (like Excel VSTO Add-in) projects even when a valid license is installed.
21+
22+
## Solution
23+
24+
This happens because there is no proper main window and application context, which means that the licensing mechanism cannot be evaluated as expected. To resolve this, use the `TelerikLicensing.Register` static method.
25+
26+
Here is a possible solution to resolve the licensing mechanism and remove the Watermark if the license key is valid:
27+
28+
* Ensure that each project library in your Add-in/Plugin Project is referencing the Telerik.Licensing NuGet. The Licensing NuGet is located on the [NuGet.org server](https://www.nuget.org/).
29+
30+
* Ensure that the watermark does not appear in your Add-In/Plugin when run as a standalone application in Visual Studio.
31+
32+
* Call the TelerikLicensing.Register() method as early as possible, before initializing any Telerik controls. Keep in mind that RadForm is also a control from our suite. You will need to consider placing it as early as possible in your plug-in’s loading process.
33+
34+
````C#
35+
36+
public class TelerikHelper
37+
{
38+
public static void Register() => Telerik.Licensing.TelerikLicensing.Register();
39+
}
40+
41+
````
42+
43+
44+

0 commit comments

Comments
 (0)