New Licensing File: What if I build from a service account?

1 Answer 7 Views
General Discussions
Joe
Top achievements
Rank 1
Joe asked on 04 Jun 2025, 07:28 PM
We use a Telerik via NuGet packages.  All of our developers have followed Telerik's instructions to build by putting our license files in our personal folders here.

%appdata%/telerik 

This all works just fine.

However our nightly build is performed by a service account.  Where do I put the telerik-license.txt file for that?  I do not want to add it to the project.   

Is there some global folder -- available to ALL users -- that the Telerik build process can copy it from?  Something not  local to the current user like %appdata%?

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 05 Jun 2025, 06:46 AM

Hello Joe,

The Telerik licensing mechanism searches for a license also in the environment variables of the machine. In your scenario, you can take advantage of this and add variable named TELERIK_LICENSE as mentioned here.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Joe
Top achievements
Rank 1
commented on 06 Jun 2025, 06:36 PM

Hi Martin,

I must be doing something wrong.   I have tried this approach and it does not work for me.  I get the following error messages every time I try to build using the environment variable approach

 



2>C:\Users\joe\.nuget\packages\telerik.licensing\1.6.5\build\Telerik.Licensing.targets(29,3): Telerik and Kendo UI Licensing warning TKL003: Corrupted Telerik and Kendo UI License Key content in:
2>C:\Users\joe\.nuget\packages\telerik.licensing\1.6.5\build\Telerik.Licensing.targets(29,3): Telerik and Kendo UI Licensing warning TKL003: TELERIK_LICENSE (EnvironmentVariable)
2>C:\Users\joe\.nuget\packages\telerik.licensing\1.6.5\build\Telerik.Licensing.targets(29,3): Telerik and Kendo UI Licensing warning TKL003: Download a new copy of the license key from https://prgress.co/3PxpDaP
2>C:\Users\joe\.nuget\packages\telerik.licensing\1.6.5\build\Telerik.Licensing.targets(29,3): Telerik and Kendo UI Licensing warning TKL101: Telerik Document Processing Libraries is not listed in your current license file.
2>C:\Users\joe\.nuget\packages\telerik.licensing\1.6.5\build\Telerik.Licensing.targets(29,3): Telerik and Kendo UI Licensing warning TKL101: Telerik UI for WPF is not listed in your current license file.
2>C:\Users\joe\.nuget\packages\telerik.licensing\1.6.5\build\Telerik.Licensing.targets(29,3): Telerik and Kendo UI Licensing warning TKL004: Unable to locate licenses for all products.

Here is what I did

  1. I created a system level environment variable named TELERIK_LICENSE.   
  2. I opened up in NotePad my existing license file (the one that works when I build in a local account), copied all of its text to the  clipboard and then pasted it in as the value of environment variable.
  3. I made sure to shut-down and then restart Visual Studio
  4. I cleaned my build and re-ran it.

I thought maybe I had copy-pasted wrong I so I re-downloaded the license file and did it again.  Same error.

Then I thought, maybe I should make the environment variable hold the path to the file or the path to the folder that contains the file.  So I tried that.  It did not help

Finally I deleted the environment variable and now I can build locally again (because it's now picking up the file in %appdata%/telerik)  but my problem remains.

Tags
General Discussions
Asked by
Joe
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or