Resolving "Invalid License" Issue during runtime in Telerik Reporting
Environment
| Product | Version |
|---|---|
| Progress® Telerik® Reporting | 2025 Q1 (19.0.25.211) and later |
Description
Starting with Telerik Reporting 2025 Q1 (19.0.25.211), an invalid or missing license can add a watermark to report pages and produce licensing warnings during build or runtime. A common cause is that the startup project does not directly reference Telerik.Licensing, or that the build process cannot discover a current license key.
Solution
General Instructions for .NET and .NET Framework Projects
Use the current Telerik.Reporting NuGet package whenever possible. It adds the required dependencies, including Telerik.Licensing. If automatic activation fails, follow these steps to configure the startup project:
-
Install a valid license key. Follow the Telerik Reporting license key setup instructions. On the build machine, store
telerik-license.txtin the project root or the build user's%AppData%\Telerik\(Windows) or~/.telerik/(macOS/Linux) directory. Alternatively, set theTELERIK_LICENSEenvironment variable to the complete license key contents and make it available to the build process. License discovery occurs at build time; copying the key only to the deployment machine does not activate the build. -
Identify the startup project. Determine which project serves as the application entry point.
-
Add
Telerik.Licensing. Add the Telerik.Licensing NuGet package directly to the startup project. You can use the NuGet Package Manager or the Package Manager Console.Use the following command in the Package Manager Console:
powershellInstall-Package Telerik.Licensing -
Clean and rebuild the solution. Perform a clean build so the project resolves all dependencies.
-
Test the application. Run the application and verify that report pages no longer contain a licensing watermark and that the build and runtime logs contain no licensing warnings.
.NET Framework-Specific Instructions
For .NET Framework startup projects that do not use the SDK-style project structure, verify that the project references at least one Telerik Reporting NuGet package or assembly.
If the startup project references only other projects that contain the reporting code, the licensing build task might not detect Telerik Reporting usage. In that case, add the Telerik.Licensing package and Telerik.Reporting.dll reference to the startup project.
.NET Framework applications may need a binding redirect when they request an earlier Telerik.Licensing.Runtime version than the installed assembly. In that case, add or update the redirect in the startup project's App.config or Web.config. Place the following <runtime> element inside <configuration>, or merge the <dependentAssembly> entry into the existing <runtime>/<assemblyBinding> section. Replace both X.Y.Z.0 placeholders with the installed assembly version:
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Telerik.Licensing.Runtime" publicKeyToken="98bb5b04e55c09ef" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-X.Y.Z.0" newVersion="X.Y.Z.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
If the issue persists, review the Telerik Reporting license activation errors and warnings and runtime licensing troubleshooting guidance.