|
| 1 | +--- |
| 2 | +title: Handling 'Telerik.Licensing.EvidenceAttribute is not defined' Error |
| 3 | +description: Troubleshoot the "Invalid License" watermark in PDFs generated using Telerik Document Processing and resolve related build errors. |
| 4 | +type: troubleshooting |
| 5 | +page_title: Handling 'Telerik.Licensing.EvidenceAttribute is not defined' Error |
| 6 | +meta_title: Handling 'Telerik.Licensing.EvidenceAttribute is not defined' Error |
| 7 | +slug: handle-telerik-licensing-evidence-attribute-not-defined-error |
| 8 | +tags: pdfprocessing, telerik document processing, licensing, framework, error,evidence, attribute |
| 9 | +res_type: kb |
| 10 | +ticketid: 1704877 |
| 11 | +--- |
| 12 | + |
| 13 | +## Environment |
| 14 | + |
| 15 | +| Version | Product | Author | |
| 16 | +| ---- | ---- | ---- | |
| 17 | +| 2025.4.1104| Telerik Document Processing|[Desislava Yordanova](https://www.telerik.com/blogs/author/desislava-yordanova)| |
| 18 | +|Target Framework|.NET Framework|-| |
| 19 | + |
| 20 | +## Description |
| 21 | + |
| 22 | +It is possible to observe build errors related to the `Telerik.Licensing.Runtime.dll` assembly in a .NET Framework roject, such as: |
| 23 | + |
| 24 | +- `Type 'Telerik.Licensing.EvidenceAttribute' is not defined.` |
| 25 | +- `warning MSB3274: The primary reference "Telerik.Licensing.Runtime, Version=1.6.5.0, Culture=neutral, PublicKeyToken=98bb5b04e55c09ef, processorArchitecture=MSIL" could not be resolved because it was built against the ".NETFramework,Version=v4.6.2" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v4.6".` |
| 26 | + |
| 27 | +## Cause |
| 28 | + |
| 29 | +Build errors indicate a mismatch between the project's target framework and the `Telerik.Licensing.Runtime.dll` reference. |
| 30 | + |
| 31 | +## Solution |
| 32 | + |
| 33 | +### Step 1: Add Telerik.Licensing.Runtime.dll Assembly Reference |
| 34 | + |
| 35 | +1. Locate the `Telerik.Licensing.Runtime.dll` file in the installation folder of the Telerik product you're using. For example: |
| 36 | + `C:\Program Files (x86)\Progress\Telerik Reporting 2025 Q4\Bin` |
| 37 | +2. Add a reference to this assembly in your project. |
| 38 | + |
| 39 | +### Step 2: Update Target Framework |
| 40 | + |
| 41 | +1. Open your project in Visual Studio. |
| 42 | +2. Right-click your project → Select `Properties`. |
| 43 | +3. Navigate to the `Application` tab. |
| 44 | +4. Change the `Target Framework` to `.NET Framework 4.6.2` or higher. |
| 45 | +5. Save changes and rebuild your solution. |
| 46 | + |
| 47 | +### Step 3: Verify Licensing Integration |
| 48 | + |
| 49 | +1. Ensure the license key is correctly integrated into your project as per the [Setting Up Your Telerik Document Processing Libraries License Key]({%slug setting-up-license-key%}) documentation. |
| 50 | +2. Place `TelerikLicense.cs` (`TelerikLicense.vb`) in the startup project and confirm that the namespace `Telerik.Licensing` is recognized. |
| 51 | + |
| 52 | +### Step 4: Rebuild Solution |
| 53 | + |
| 54 | +1. Rebuild your project after ensuring the above steps have been completed. |
| 55 | +2. Check if the errors and watermark are resolved. |
| 56 | + |
| 57 | +## See Also |
| 58 | + |
| 59 | +- [System Requirements]({%slug installation-system-requirements%}) |
| 60 | +- [Setting Up Your Telerik Document Processing Libraries License Key]({%slug setting-up-license-key%}) |
| 61 | + |
0 commit comments