Skip to content

Commit d62a619

Browse files
authored
Update resolving-invalid-license-runtime-telerik-reporting.md (#1770)
new info for non-sdk style projects
1 parent a353e04 commit d62a619

File tree

1 file changed

+39
-19
lines changed

1 file changed

+39
-19
lines changed

knowledge-base/resolving-invalid-license-runtime-telerik-reporting.md

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@ ticketid: 1688629
1111

1212
## Environment
1313
<table>
14-
<tbody>
15-
<tr>
16-
<td>Product</td>
17-
<td>Progress® Telerik® Reporting</td>
18-
</tr>
19-
<tr>
20-
<td>Version</td>
21-
<td>19.1.25.521</td>
22-
</tr>
23-
</tbody>
14+
<tbody>
15+
<tr>
16+
<td>Product</td>
17+
<td>Progress® Telerik® Reporting</td>
18+
</tr>
19+
<tr>
20+
<td>Version</td>
21+
<td>19.1.25.521+</td>
22+
</tr>
23+
</tbody>
2424
</table>
2525

2626
## Description
@@ -34,20 +34,40 @@ This knowledge base article also answers the following questions:
3434

3535
## Solution
3636

37-
To resolve this issue, ensure the `Telerik.Licensing` NuGet package is directly referenced in the startup project of your application. Follow the steps below:
37+
### General Instructions for .NET and .NET Framework Projects
38+
39+
To resolve this issue, ensure the [Telerik.Licensing](https://www.nuget.org/packages/Telerik.Licensing) NuGet package is directly referenced in the startup project of your application. Follow the steps below:
3840

3941
1. **Identify the Startup Project**: Determine which project serves as the entry point for your application.
42+
1. **Add `Telerik.Licensing` NuGet Package**: Navigate to the startup project and add the [Telerik.Licensing](https://www.nuget.org/packages/Telerik.Licensing) NuGet package manually. You can do this using the NuGet Package Manager or the Package Manager Console.
4043

41-
2. **Add `Telerik.Licensing` NuGet Package**: Navigate to the startup project and add the `Telerik.Licensing` NuGet package manually. You can do this using the NuGet Package Manager or the Package Manager Console.
44+
Example using Package Manager Console - `Install-Package Telerik.Licensing -Version 1.6.5`
45+
46+
1. **Clean and Rebuild the Solution**: Perform a clean build of your solution to ensure all dependencies are correctly resolved.
47+
1. **Test the Application**: Run the application again and verify if the reports are correctly generated without displaying the "Invalid license" message.
4248

43-
Example using Package Manager Console:
44-
```bash
45-
Install-Package Telerik.Licensing -Version 1.6.5
46-
```
49+
### .NET Framework-Specific Instructions
4750

48-
3. **Clean and Rebuild the Solution**: Perform a clean build of your solution to ensure all dependencies are correctly resolved.
51+
For .NET Framework startup projects that do not use the [SDK-style project](https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview) structure, ensure that there is one or more **Telerik Reporting** NuGet packages/assemblies referenced in the project.
4952

50-
4. **Test the Application**: Run the application again and verify if the reports are correctly generated without displaying the "Invalid license" message.
53+
If the startup project contains no **Telerik Reporting** references and is not defined as [SDK-style project](https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview), and is instead referencing other projects that contain the Reporting-related code, our licensing mechanism cannot determine that any **Telerik** products are used, thus the license check will be `False` at runtime.
5154

55+
In such scenarios, add a reference to the `Telerik.Reporting.dll` so that the licensing build task can determine that **Telerik Reporting** is used and generate the necessary files to use during runtime.
5256

53-
---
57+
Additionally, if a version newer than **1.6.5** of the [Telerik.Licensing](https://www.nuget.org/packages/Telerik.Licensing) NuGet package is installed, ensure that a binding redirect is present in the `App.config`/`Web.config` file of the startup project. For example:
58+
59+
````XML
60+
<runtime>
61+
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
62+
<dependentAssembly>
63+
<assemblyIdentity name="Telerik.Licensing.Runtime" publicKeyToken="98bb5b04e55c09ef" culture="neutral" />
64+
<bindingRedirect oldVersion="0.0.0.0-1.6.9.0" newVersion="1.6.9.0" />
65+
</dependentAssembly>
66+
</assemblyBinding>
67+
</runtime>
68+
````
69+
70+
71+
## See Also
72+
73+
* [SDK-Style Projects](https://learn.microsoft.com/en-us/dotnet/core/project-sdk/overview)

0 commit comments

Comments
 (0)