|
| 1 | +--- |
| 2 | +title: Setting Up Your License Key |
| 3 | +page_title: Setting Up Your License Key File |
| 4 | +description: Learn how to install a Telerik license key file, which is required during application building and deployment. |
| 5 | +slug: licensing/license-key |
| 6 | +tags: installation, license, key |
| 7 | +position: 1 |
| 8 | +--- |
| 9 | + |
| 10 | +# Setting Up Your Telerik UI for ASP.NET AJAX License Key |
| 11 | + |
| 12 | +>Starting with the **2025 Q1** release, the UI components from the Telerik UI for ASP.NET AJAX library require activation through a license key (trial or commercial). |
| 13 | +
|
| 14 | +This article describes how to download your personal license key and use it to activate the Telerik UI for ASP.NET AJAX components. |
| 15 | + |
| 16 | +A missing or invalid license results in [errors and warnings]({%slug licensing/license-errors-warnings%}) during build and run-time indicators such as watermarks and banners. |
| 17 | + |
| 18 | +## Downloading the License Key |
| 19 | + |
| 20 | +>warning The license key file is personal and confidential. Do not commit this file to source control and do not save it to a publicly accessible location! |
| 21 | +
|
| 22 | +To download a license key for Telerik UI for ASP.NET AJAX, you must have either a developer license or a trial license. If you are new to Telerik UI for ASP.NET AJAX, [sign up for a free trial](https://www.telerik.com/aspnet-ajax) first, and then follow the steps below: |
| 23 | + |
| 24 | +1. Go to the [License Keys](https://www.telerik.com/account/your-licenses/license-keys?_gl=1*cgbz4c*_gcl_au*MTIyNTMyNzI1My4xNzMyMDI2NzU3*_ga*MjAyMTI5MTQ4MS4xNzMyMDI2NzU1*_ga_9JSNBCSF54*MTczOTM0ODI2NS4xNi4xLjE3MzkzNTkxMTcuNTMuMC4w) page in your Telerik account. |
| 25 | +2. Click the **Download License Key** button. |
| 26 | +  |
| 27 | +3. Next, [Activate your Telerik UI for ASP.NET AJAX components](#activating-the-telerik-ui-for-asp-net-ajax-components). |
| 28 | + |
| 29 | +The [Progress Control Panel](https://docs.telerik.com/controlpanel/introduction), [automated installers]({%slug getting-started/installation/installing-the-telerik-controls-from-msi-file%}), and the [Visual Studio Extensions]({%slug introduction/radcontrols-for-asp.net-ajax-fundamentals/integration-with-visual-studio/visual-studio-extensions/overview%}) will automatically download and store your license key in your home directory. This makes it available for all projects that you develop on your local machine. |
| 30 | + |
| 31 | +## Activating the Telerik UI for ASP.NET AJAX Components |
| 32 | + |
| 33 | +>important If your project doesn’t use NuGet packages, or you have a Web Site project, follow the instructions from the [Installing a License Key in Projects without NuGet References](#installing-a-license-key-in-projects-without-nuget-references) section. |
| 34 | +
|
| 35 | +To activate the Telerik UI for ASP.NET AJAX controls: |
| 36 | + |
| 37 | +- Copy the downloaded `telerik-license.txt` license key file to your home directory. This makes the license key available to all projects that you develop on your computer: |
| 38 | + - For Windows: `%AppData%\Telerik\telerik-icense.txt` |
| 39 | + - For Mac/Linux: `~/.telerik/telerik-license.txt` |
| 40 | + - Alternatively, copy the `telerik-license.txt` license key file to the root folder of your project. This makes the license key available only to this project. Do not commit the file to source control as this is your personal license key. |
| 41 | + |
| 42 | +When you build the project, the `Telerik.Licensing` NuGet package automatically locates the license file and uses it to activate the WebForms controls. |
| 43 | + |
| 44 | +## Installing a License Key in Projects without NuGet References |
| 45 | + |
| 46 | +Telerik strongly recommends the use of NuGet packages whenever possible. Only include the license key as a code snippet when NuGet packages are not an option. |
| 47 | + |
| 48 | +1. If you cannot use NuGet packages in your project, add the license as a code snippet: |
| 49 | +2. Go to the [License Keys](https://www.telerik.com/account/your-licenses/license-keys) page in your Telerik account. |
| 50 | +3. On the Telerik UI for ASP.NET AJAX row, click the **View key** link in the **SCRIPT KEY** column. |
| 51 | +  |
| 52 | +4. Copy the C# code snippet into a new file, for example, `TelerikLicense.cs`. |
| 53 | +5. Add the `TelerikLicense.cs` file to your project. |
| 54 | + - In case of Web Site project, add the file to the `App_Code` folder. |
| 55 | + |
| 56 | +## See Also |
| 57 | + |
| 58 | +* [License Activation Errors and Warnings]({%slug licensing/license-errors-warnings%}) |
| 59 | +* [Adding the License Key to CI Services]({%slug licensing/add-license-to-ci-cd%}) |
| 60 | +* [Frequently Asked Questions about Your Telerik UI for ASP.NET AJAX License Key]({%slug licensing/licensing-faq%}) |
0 commit comments