How to Download a Script Key
Environment
| Version | Product | Author |
|---|---|---|
| 2026.1.210 | Telerik Document Procesing | 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, in this scenario, licensing must be activated via 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 Keysbutton:
-
A new Script Key window is shown 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 EvidenceAttribute that 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.
-
Now, we can register the copied script key above by using the TelerikLicensing.Register("script key").
The script key needs to 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()}";
}
}