How to Download a Script Key
Environment
| Version | Product | Author |
|---|---|---|
| 2026.1.210 | Telerik Document Processing | Desislava Yordanova |
| Target Framework | .NET Framework |
Description
If Telerik assemblies are referenced manually (DLLs in /bin) and the project does not have the Telerik.Licensing NuGet package, licensing must be activated through a script key (EvidenceAttribute). This article shows how to download such a script key.
Solution
-
Go to the License Keys page in your Telerik account.
-
Click the View Script Keys button:
-
A new Script Key window appears with your C#/VB Script Key for the selected product. The drop-down at the top lists all the products accessible with your license. Select the desired product:
The code snippet from the Script Key contains an assembly attribute called
EvidenceAttributethat holds information about the script license key. -
Copy the whole key string to the bottom of the scrollbar in the
Telerik.Licensing.EvidenceAttribute("script-key"):
Do not publish the script key snippet in publicly accessible repositories. This is your personal script license key.
-
Register the copied script key by using
TelerikLicensing.Register("script key").The script key must be registered before initializing any code related to the Telerik Document Processing Libraries.
namespace LicensingInLambda;
public class Function
{
public string FunctionHandler(string input, ILambdaContext context)
{
// Lambda function entry point
// This requires adding a reference to the Telerik.Licensing.Runtime.dll.
TelerikLicensing.Register("your script key");
// TODO: DPL - generate PDF here
var entryAssembly = Assembly.GetEntryAssembly();
var name = entryAssembly?.GetName();
return $"Entry assembly: {entryAssembly?.GetName()} ... {Class1.DoYourMagic()}";
}
}