AUTHOR: Rumen Zhekov
DATE POSTED: April 02, 2018
Sometimes when upgrading a Web Site or Web App project to a newer version of Telerik.Web.UI.dll assembly, you may experience license file (licenses.licx) errors like the ones below, which may prevent the compiler to build the solution:
>, Telerik.Web.UI, Version=<
>, Culture=neutral, PublicKeyToken=121fae78165ba3d4
Telerik.Web.UI.RadGrid, Telerik.Web.UI, Version=2015.1.401.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4
Telerik.Web.UI.RadCalendar, Telerik.Web.UI, Version=2015.1.401.40, Culture=neutral, PublicKeyToken=121fae78165ba3d4
and enlists the Telerik ASP.NET AJAX components used in the application and their fully qualified names.
The default location of the LicenseFile.licx is:
A customer report indicates that if the reference errors persist after following these steps, the solution was to re-install the NuGet package microsoft.bcl.build.
If the above does not help:
Alternative solution based on a third party NuGet project to ensure that the license file is cleared before compiling the application:
The EmptyLicensesLicx is a NuGet Package to ensure the empty license.licx is present and working in Visual Studio.
For details of why the error occurs see the readme on the GitHub project. The developer behind the project does a wonderful job of breaking down the problem and solution.
Missing Licenses.licx file
If for some reason the license.licx file is missing and you are getting build errors because of it, you can rebuild the application and it should be recreated.
Another approach is to create an empty license.licx file in the root of your Web Site or in the /ProjectName/Properties folder, if you are developing a Web Application project.
License file is not updated and contains information for older versions of the controls
If for some reason the licenses.licx file is not updated properly, you can delete its contents and rebuild the application.
Task could not find "LC.exe" using the SdkToolsPath
If you get the Task could not find "LC.exe" using the SdkToolsPath error during automated MS Build tasks, review the Telerik MSBuild Task could not find “LC.exe” using the SdkToolsPath blog post by Matthew Sigman. Essentially, you should either install Windows SDK on the build machine, or add the /p:GenerateSerializationAssemblies=Off flag to the build arguments.
Could not transform licenses file 'file' into a binary resource
Source Control Issues
Getting a trial error message when refreshing the page