Handling 'Telerik.Licensing.EvidenceAttribute is not defined' Error
Environment
| Version | Product | Author |
|---|---|---|
| 2025.4.1104 | Telerik Document Processing | Desislava Yordanova |
| Target Framework | .NET Framework | - |
Description
It is possible to observe build errors related to the Telerik.Licensing.Runtime.dll assembly in a .NET Framework roject, such as:
Type 'Telerik.Licensing.EvidenceAttribute' is not defined.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".
Cause
Build errors indicate a mismatch between the project's target framework and the Telerik.Licensing.Runtime.dll reference.
Solution
Step 1: Add Telerik.Licensing.Runtime.dll Assembly Reference
- Locate the
Telerik.Licensing.Runtime.dllfile in the installation folder of the Telerik product you're using. For example:
C:\Program Files (x86)\Progress\Telerik Reporting 2025 Q4\Bin - Add a reference to this assembly in your project.
Step 2: Update Target Framework
- Open your project in Visual Studio.
- Right-click your project → Select
Properties. - Navigate to the
Applicationtab. - Change the
Target Frameworkto.NET Framework 4.6.2or higher. - Save changes and rebuild your solution.
Step 3: Verify Licensing Integration
- Ensure the license key is correctly integrated into your project as per the Setting Up Your Telerik Document Processing Libraries License Key documentation.
- Place
TelerikLicense.cs(TelerikLicense.vb) in the startup project and confirm that the namespaceTelerik.Licensingis recognized.
Step 4: Rebuild Solution
- Rebuild your project after ensuring the above steps have been completed.
- Check if the errors and watermark are resolved.