Skip to content

Commit b6ae79d

Browse files
author
KB Bot
committed
Added new kb article license-not-recognized-telerik-document-processing-libraries
1 parent 67d4fc1 commit b6ae79d

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed
Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
---
2+
title: Resolving License Validation Issues in Telerik Document Processing Libraries
3+
description: Troubleshooting the issue where the license is not recognized during runtime in Telerik Document Processing Libraries.
4+
type: troubleshooting
5+
page_title: License Not Recognized in Telerik Document Processing Libraries
6+
meta_title: License Not Recognized in Telerik Document Processing Libraries
7+
slug: license-not-recognized-telerik-document-processing-libraries
8+
tags: telerik, document, processing, license, validation, runtime, issues, licensing diagnostics
9+
res_type: kb
10+
ticketid: 1690929
11+
---
12+
13+
## Environment
14+
15+
| Version | Product | Author |
16+
| ---- | ---- | ---- |
17+
| 2025.2.520| RadPdfProcessing |[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)|
18+
19+
## Description
20+
21+
This article aims to address potential licensing issues while generating Excel files with Telerik Document Processing Libraries during runtime testing. The generated file contains a "License" tab with a trial message, despite the Build Output window indicating a valid license. The issue arises in a multi-project (e.g. Blazor WASM) application setup, where dependencies are shared across projects.
22+
23+
## Cause
24+
25+
This issue generally occurs due to incomplete license validation during runtime in complex setups, particularly when using shared libraries or plugin architectures. Even if the license is validated during build, runtime environments may fail to recognize it due to transitive dependency limitations.
26+
27+
## Solution
28+
29+
To ensure proper license validation and eliminate trial messages, follow the steps below:
30+
31+
1. **License Key Placement**: Ensure the `telerik-license.txt` file is present in the root directory of all projects referencing Telerik Document Processing Libraries, including shared libraries or class libraries.
32+
33+
2. **Explicit License Registration**: Add a call to `TelerikLicensing.Register()` early in your application lifecycle. For Blazor WASM applications, include this call in the `Program.cs` file. This approach validates the license explicitly.
34+
35+
Example:
36+
```csharp
37+
using Telerik.Licensing;
38+
39+
var builder = WebAssemblyHostBuilder.CreateDefault(args);
40+
TelerikLicensing.Register();
41+
builder.RootComponents.Add<App>("#app");
42+
builder.Build().RunAsync();
43+
```
44+
45+
3. **Verify Assemblies**: Ensure no trial versions of Telerik assemblies are referenced in any project. Replace trial assemblies with licensed versions, if necessary.
46+
47+
4. **Enable Diagnostics**: Add the following property to your `.csproj` file to enable detailed licensing diagnostics during build and runtime:
48+
```xml
49+
<PropertyGroup>
50+
<TelerikLicensingVerbosity>diagnostic</TelerikLicensingVerbosity>
51+
</PropertyGroup>
52+
```
53+
Review the diagnostic output for clues about license validation issues.
54+
55+
5. **Direct Package References**: Add references to Telerik Document Processing Libraries and Telerik UI for Blazor NuGet packages directly in the Blazor WASM project. This resolves transitive dependency limitations.
56+
57+
6. **Avoid Environment Variables**: Use only the `telerik-license.txt` file for license delivery instead of environment variables, which can cause issues due to length limitations.
58+
59+
By following these steps, runtime validation issues should resolve, and the trial message will no longer appear in generated documents.
60+
61+
## See Also
62+
63+
- [Telerik Document Processing Licensing Overview](https://docs.telerik.com/devtools/document-processing/distribution-and-licensing/license-key)
64+
- [Using TelerikLicensing.Register Method](https://docs.telerik.com/devtools/document-processing/distribution-and-licensing/license-key/adding-license-key-ci-cd-services#using-teleriklicensingregister-method-on-aws-lambdas)
65+
- [Diagnostic Options for Telerik Licensing](https://docs.telerik.com/devtools/document-processing/knowledge-base/telerik-trial-version-message)
66+
- [Troubleshooting Telerik Document Processing Licensing Issues](https://docs.telerik.com/devtools/document-processing/distribution-and-licensing/license-key/setting-up-license-key)

0 commit comments

Comments
 (0)