|
| 1 | +--- |
| 2 | +title: Resolving TelerikLicense.vb Build Error for ASP.NET AJAX 2025 Q1 License Key |
| 3 | +description: This article provides solutions for the TelerikLicense.vb build error encountered when updating to the ASP.NET AJAX 2025 Q1 assemblies. |
| 4 | +type: troubleshooting |
| 5 | +page_title: Fixing Build Error with ASP.NET AJAX 2025 Q1 TelerikLicense.vb File |
| 6 | +slug: common-resolve-teleriklicense-vb-build-error |
| 7 | +tags: license, build error, asp.net ajax, vb |
| 8 | +res_type: kb |
| 9 | +ticketid: 1678633 |
| 10 | +--- |
| 11 | + |
| 12 | +## Environment |
| 13 | + |
| 14 | +<table> |
| 15 | +<tbody> |
| 16 | +<tr> |
| 17 | +<td>Product</td> |
| 18 | +<td>Progress® Telerik® UI for ASP.NET AJAX</td> |
| 19 | +</tr> |
| 20 | +</tbody> |
| 21 | +</table> |
| 22 | + |
| 23 | +## Description |
| 24 | + |
| 25 | +Updating web projects with the new 2025 Q1 assemblies for Progress® Telerik® UI for ASP.NET AJAX results in a build error related to the `TelerikLicense.vb` file. The build error `error BC30034: Bracketed identifier is missing closing ']'` occurs when trying to follow the instructions for adding the license key to the project. Additionally, the Telerik License Key view uses C# syntax, which the VB compiler does not understand. |
| 26 | + |
| 27 | +## Cause |
| 28 | + |
| 29 | +The cause of the build error is the incorrect syntax used in the `TelerikLicense.vb` file. The VB compiler does not recognize the C# syntax provided in the Telerik License Key view. |
| 30 | + |
| 31 | +## Solution |
| 32 | + |
| 33 | +To resolve the build error, use the correct VB syntax in the `TelerikLicense.vb` file. Replace the content of the `TelerikLicense.vb` file with the following VB syntax: |
| 34 | + |
| 35 | +```vb |
| 36 | +<Assembly: Telerik.Licensing.EvidenceAttribute("...your license code string...")> |
| 37 | +``` |
| 38 | + |
| 39 | +Replace `...your license code string...` with your actual license code string from your Telerik account. |
| 40 | + |
| 41 | +Alternatively, to prevent licensing warnings and make the license key available to all Telerik .NET apps you develop on your local machine, follow these steps: |
| 42 | + |
| 43 | +1. Go to the [License Keys page](https://www.telerik.com/account/your-licenses/license-keys) in your Telerik account. |
| 44 | +2. Click the `Download License Key` button. |
| 45 | +3. Save the `telerik-license.txt` file to one of the following directories on your local machine: |
| 46 | + - `%AppData%\Telerik\telerik-license.txt` (e.g., `C:\Users\...\AppData\Roaming\Telerik\telerik-license.txt`) |
| 47 | + - `C:\inetpub\wwwroot\telerik-license.txt` |
| 48 | + - `C:\inetpub\telerik-license.txt` |
| 49 | + - `C:\telerik-license.txt` |
| 50 | + |
| 51 | + |
| 52 | +## See Also |
| 53 | + |
| 54 | +- [Progress® Telerik® UI for ASP.NET AJAX Documentation](https://docs.telerik.com/devtools/aspnet-ajax/) |
| 55 | +- [Managing Your Telerik License Keys](https://www.telerik.com/account/your-licenses/license-keys) |
0 commit comments