Resolving Trial Watermark Issues with the Generated Documents in MFC applications
Environment
| Version | Product | Author |
|---|---|---|
| 2026.1.210 | Telerik Document Processing | Desislava Yordanova |
Description
When you generate documents in MFC (Microsoft Foundation Class) applications with Telerik Document Processing libraries, a trial watermark may appear even though the license is properly set up. This issue can occur even if a valid license is detected during the build phase, as indicated by the build output.
Solution
To resolve a license issue with Telerik Document Processing in MFC applications, follow these steps:
-
Verify that the Telerik.Licensing NuGet package is directly referenced in the startup project. For .NET Framework startup projects that do not use the SDK-style project structure, verify that one or more Telerik Document Processing NuGet packages or assemblies are referenced in the project. If the startup project contains no Telerik Document Processing references and is not an SDK-style project, the licensing mechanism cannot determine that any Telerik products are in use. As a result, the license check returns
Falseat runtime. -
Verify that a valid license key is present and correctly configured.
-
Call the
TelerikLicensing.Register method as early as possible in your project because there is no strict entry point. -
Use a Document Processing version that matches the corresponding
Telerik.Licensingversion. MFC C++ applications have no binding redirect, and it is possible to load different versions ofTelerik.Licensing. You may call.Register()on one version while the libraries look for a license on another. Strictly follow the corresponding versions. For example:-
Document Processing version 2025.4.1319 matches
Telerik.Licensing1.6.36. -
Document Processing version 2026.1.210 matches
Telerik.Licensing1.6.40. -
Document Processing version 2026.1.304 matches
Telerik.Licensing1.7.0.
-
-
Check the loaded assemblies after the code that produces the document:
Assembly entryAssembly = Assembly.GetEntryAssembly();
Debug.WriteLine(" - EntryAssembly: " + entryAssembly.FullName);
foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
{
Debug.WriteLine(" - LoadedAssembly: " + assembly.FullName);
}