New to Telerik Document ProcessingStart a free 30-day trial

Resolving Trial Watermark Issues with the Generated Documents in MFC applications

Updated on Jun 9, 2026

Environment

VersionProductAuthor
2026.1.210Telerik Document ProcessingDesislava 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:

  1. 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 False at runtime.

  2. Verify that a valid license key is present and correctly configured.

  3. Call the TelerikLicensing.Register method as early as possible in your project because there is no strict entry point.

  4. Use a Document Processing version that matches the corresponding Telerik.Licensing version. MFC C++ applications have no binding redirect, and it is possible to load different versions of Telerik.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.Licensing 1.6.36.

    • Document Processing version 2026.1.210 matches Telerik.Licensing 1.6.40.

    • Document Processing version 2026.1.304 matches Telerik.Licensing 1.7.0.

  5. Check the loaded assemblies after the code that produces the document:

csharp
            Assembly entryAssembly = Assembly.GetEntryAssembly();
            Debug.WriteLine(" - EntryAssembly: " + entryAssembly.FullName);
            foreach (var assembly in AppDomain.CurrentDomain.GetAssemblies())
            {
                Debug.WriteLine(" - LoadedAssembly: " + assembly.FullName); 
            }

See Also