Skip to content

Commit 2284452

Browse files
committed
Updated Blazor common UG documentation
1 parent 227a1c9 commit 2284452

File tree

5 files changed

+63
-66
lines changed

5 files changed

+63
-66
lines changed

blazor/common/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ To enable AOT compilation in the application, add `RunAOTCompilation` options wi
9696
* [Host and deploy Blazor](https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy)
9797
* [Host and deploy Blazor Server](https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/server/)
9898
* [Host and deploy ASP.NET Core Blazor WebAssembly](https://learn.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly)
99-
* [Publish a web app to Azure App Service using Visual Studio](https://learn.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-aspnet-web-app?view=vs-2022&tabs=azure)
99+
* [Publish a Web App to Azure App Service using Visual Studio](https://learn.microsoft.com/en-us/visualstudio/deployment/quickstart-deploy-aspnet-web-app?view=vs-2022&tabs=azure)
100100
* [Deploy ASP.NET Core apps to Azure App Service](https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/azure-apps)
101101
* [Deploy Blazor WASM App to Cloudflare](https://www.syncfusion.com/blogs/post/easily-deploy-a-blazor-webassembly-app-to-cloudflare)
102102
* [Publish a Blazor WebAssembly App and .NET API with Azure Static Web Apps](https://learn.microsoft.com/en-us/training/modules/publish-app-service-static-web-app-api-dotnet/)

blazor/common/how-to/upgrade-syncfusion-components-to-18dot1-version.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ documentation: ug
99

1010
# How to upgrade Syncfusion® Blazor Components to 18.1.0.36 version
1111

12-
This guide explains the one-time migration required when upgrading from EJ2-based Syncfusion Blazor packages to version 18.1.0.36 and later.
12+
This guide explains the one-time migration required when upgrading from Syncfusion Blazor packages to version 18.1.0.36 and later.
1313

1414
## NuGet changes
1515

blazor/getting-started/license-key/CI-license-validation.md

Lines changed: 20 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
---
22
layout: post
3-
title: Overview of Syncfusion license validation in CI services - Syncfusion
4-
description: Learn here about how to register Syncfusion license key for Syncfusion application for license validation.
3+
title: Validate Syncfusion license keys in CI services - Syncfusion
4+
description: Learn how to validate Syncfusion Blazor license keys in CI or CD pipelines using the LicenseKeyValidator utility, secure variables, and automated tests.
55
platform: Blazor
6-
component: Common
6+
control: Common
77
documentation: ug
88
---
99

@@ -16,16 +16,14 @@ margin-top: 1.5em; margin-bottom: 1.5em;
1616
}
1717
</style>
1818

19-
20-
# Syncfusion<sup style="font-size:70%">&reg;</sup> license key validation in CI services
19+
# Validate Syncfusion® license keys in CI services
2120

2221
Syncfusion<sup style="font-size:70%">&reg;</sup> license key validation in CI services ensures that Syncfusion<sup style="font-size:70%">&reg;</sup> Essential Studio<sup style="font-size:70%">&reg;</sup> components are properly licensed during CI processes. Validating the license key at the CI level can prevent licensing errors during deployment. Set up the continuous integration process to fail in case the license key validation fails. Validate the passed parameters and the registered license key again to resolve the issue.
2322

24-
The following section shows how to validate the Syncfusion<sup style="font-size:70%">&reg;</sup> license key in CI services.
25-
26-
* Download and extract the LicenseKeyValidator.zip utility from the following link: [LicenseKeyValidator](https://s3.amazonaws.com/files2.syncfusion.com/Installs/LicenseKeyValidation/LicenseKeyValidator.zip).
23+
Follow these steps to validate the Syncfusion<sup style="font-size:70%">&reg;</sup> license key in CI services.
2724

28-
* Open the LicenseKeyValidation.ps1 PowerShell script in a text\code editor as shown in the below example.
25+
* Download and extract the LicenseKeyValidator.zip utility: [LicenseKeyValidator](https://s3.amazonaws.com/files2.syncfusion.com/Installs/LicenseKeyValidation/LicenseKeyValidator.zip)
26+
* Open the LicenseKeyValidation.ps1 PowerShell script in a text\code editor and update the parameters as shown below.
2927

3028
{% tabs %}
3129
{% highlight c# tabtitle="PowerShell" %}
@@ -37,19 +35,16 @@ Write-Host $result
3735
{% endhighlight %}
3836
{% endtabs %}
3937

40-
![LicenseKeyValidation script](images/license-validation.png)
38+
![PowerShell license validation output](images/license-validation.png)
4139

42-
* Update the parameters in the LicenseKeyValidation.ps1 script file as described below.
43-
44-
**Platform:** Modify the value for /platform: to the actual platform "Blazor".
45-
46-
**Version:** Change the value for /version: to the required version (e.g., "26.2.4").
47-
48-
**License Key:** Replace the value for /licensekey: with your actual license key (e.g., "Your License Key").
40+
* Update the parameters in the script:
41+
* **Platform:** Set /platform:"Blazor" (use the relevant Syncfusion platform as needed).
42+
* **Version:** Set /version:"26.2.4" (match the Syncfusion package version used in the build).
43+
* **License key:** Set /licensekey:"Your License Key" (inject via secure variable or secret).
4944

5045
## Azure Pipelines (YAML)
5146

52-
* Create a new [User-defined Variable](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#user-defined-variables) named `LICENSE_VALIDATION` in the Azure Pipeline. Use the path of the LicenseKeyValidation.ps1 script file as a value (e.g., D:\LicenseKeyValidator\LicenseKeyValidation.ps1).
47+
* Create a [user-defined variable](https://learn.microsoft.com/en-us/azure/devops/pipelines/process/variables?view=azure-devops&tabs=yaml%2Cbatch#user-defined-variables) named `LICENSE_VALIDATION` in the Azure pipeline. Set it to the path of the LicenseKeyValidation.ps1 script (for example, D:\LicenseKeyValidator\LicenseKeyValidation.ps1).
5348

5449
* Integrate the PowerShell task in the pipeline and execute the script to validate the license key.
5550

@@ -61,7 +56,6 @@ pool:
6156
vmImage: 'windows-latest'
6257

6358
steps:
64-
6559
- task: PowerShell@2
6660
inputs:
6761
targetType: filePath
@@ -77,13 +71,13 @@ steps:
7771

7872
* Include the PowerShell task in the pipeline and execute the script to validate the license key.
7973

80-
![LicenseKeyValidation script](images/license-validation-classic.png)
74+
![Classic pipeline PowerShell task for license validation](images/license-validation-classic.png)
8175

8276
## GitHub actions
8377

8478
* To execute the script in PowerShell as part of a GitHub Actions workflow, include a step in the configuration file and update the path of the LicenseKeyValidation.ps1 script file (e.g., D:\LicenseKeyValidator\LicenseKeyValidation.ps1).
8579

86-
The following example shows the syntax for validating the Syncfusion<sup style="font-size:70%">&reg;</sup> license key in GitHub actions.
80+
The following example validates the Syncfusion<sup style="font-size:70%">&reg;</sup> license key in GitHub Actions.
8781

8882
{% tabs %}
8983
{% highlight c# tabtitle="YAML" %}
@@ -114,9 +108,9 @@ pipeline {
114108
stage('Syncfusion License Validation') {
115109
steps {
116110
sh 'pwsh ${LICENSE_VALIDATION}'
117-
}
118-
}
119-
}
111+
}
112+
}
113+
}
120114
}
121115
{% endhighlight %}
122116
{% endtabs %}
@@ -131,10 +125,10 @@ pipeline {
131125
{% highlight c# %}
132126
using Syncfusion.Licensing;
133127

134-
//Register Syncfusion license key
128+
// Register the Syncfusion license key
135129
Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense("YOUR LICENSE KEY");
136130

137-
//Validate the registered license key
131+
// Validate the registered license key
138132
bool isValid = SyncfusionLicenseProvider.ValidateLicense(Platform.Blazor);
139133
{% endhighlight %}
140134
{% endtabs %}

blazor/getting-started/license-key/licensing-errors.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
---
22
layout: post
3-
title: Overview of Syncfusion licensing errors - Syncfusion
4-
description: Learn here about Syncfusion common licensing errors which appears on license validation in Syncfusion Blazor applications.
3+
title: Troubleshoot Syncfusion licensing errors | Syncfusion
4+
description: Learn how to diagnose and resolve common Syncfusion Blazor licensing errors, including unregistered, invalid, expired, platform mismatch, version mismatch keys.
55
platform: Blazor
6-
component: Common
6+
control: Common
77
documentation: ug
88
---
99

10-
# Syncfusion<sup style="font-size:70%">&reg;</sup> Licensing Errors
10+
# Syncfusion<sup style="font-size:70%">&reg;</sup> licensing errors
1111

12-
Licensing error popup is displayed with various messages under different circumstances. Here are some ways to resolve different issues.
12+
Licensing pop-ups can appear with different messages depending on the scenario. Use the guidance below to identify the message and apply the appropriate fix.
1313

1414
## Licensing errors
1515

16-
### License key not registered\Trial Expired
16+
### License key not registered or trial expired
1717

18-
The following error message will be shown if a Syncfusion<sup style="font-size:70%">&reg;</sup> license key has not been registered in your application or if the trial key has expired after 30 days.
18+
This message appears when a license key is not registered in the application or a trial key has passed the 30‑day evaluation period.
1919

20-
**Error message:** This application was built using a trial version of Syncfusion<sup style="font-size:70%">&reg;</sup> Essential Studio<sup style="font-size:70%">&reg;</sup>. You should include the valid license key to remove the license validation message permanently.
20+
**Error message:** This application was built using a trial version of Syncfusion<sup style="font-size:70%">&reg;</sup> Essential Studio<sup style="font-size:70%">&reg;</sup>. Include a valid license to permanently remove this license validation message.
2121

2222
![License key not registered](images/licensing-error-7.png)
2323

2424
**Solution:**
2525

26-
* If you use Blazor components through trial installer or obtained our components via [NuGet.org](https://www.nuget.org/packages?q=syncfusion), you can choose from the options listed below
26+
* If using Blazor components through trial installer or obtained our components via [NuGet.org](https://www.nuget.org/packages?q=syncfusion), use one of the following options.
2727

2828
1. If you **have a valid Syncfusion<sup style="font-size:70%">&reg;</sup> license**, you can **generate a license key for a specific version and product** from [this page](https://www.syncfusion.com/account/downloads).
2929

@@ -35,21 +35,21 @@ The following error message will be shown if a Syncfusion<sup style="font-size:7
3535

3636
4. If you **do not already have a Syncfusion<sup style="font-size:70%">&reg;</sup> account**, you can create one [here](https://www.syncfusion.com/account/register) and [purchase a license](https://www.syncfusion.com/sales/products) or start your 30-day free trial. Then you can **generate the trial license key for a specific version and platform** from [this page](https://www.syncfusion.com/account/manage-trials/start-trials).
3737

38-
5. Also, you can generate the license key from claim license key page by clicking the **"Claim your FREE account"** click from the licensing warning message. Refer to this [help topic](https://blazor.syncfusion.com/documentation/getting-started/license-key/how-to-generate#Claim-License-Key) for more details.
38+
5. You can also generate a license key from the Claim license key page by selecting “Claim your FREE account” in the warning dialog. Refer to this [help topic](https://blazor.syncfusion.com/documentation/getting-started/license-key/how-to-generate#Claim-License-Key) for more details.
3939

40-
* In your application, register the generated license key. Refer to this [help topic](https://blazor.syncfusion.com/documentation/getting-started/license-key/how-to-register-in-an-application) for information on registering the license key.
40+
* Register the generated license key in the application. Refer to this [help topic](https://blazor.syncfusion.com/documentation/getting-started/license-key/how-to-register-in-an-application) for information on registering the license key.
4141

4242
### Invalid key
4343

4444
If the application is registered with an invalid key, another version of license key, or another platform's license key, the following error message will pop up when launching the application.
4545

46-
**Error Message:** The included Syncfusion<sup style="font-size:70%">&reg;</sup> license key is invalid.
46+
**Error message:** The included Syncfusion<sup style="font-size:70%">&reg;</sup> license key is invalid.
4747

4848
![License key not registered](images/licensing-error-6.png)
4949

5050
**Solution:**
5151

52-
* If you use Blazor components through trial installer or obtained our components via [NuGet.org](https://www.nuget.org/packages?q=syncfusion), you can choose from the options listed below
52+
* If you use Blazor components through trial installer or obtained our components via [NuGet.org](https://www.nuget.org/packages?q=syncfusion), use one of the following options:
5353

5454
1. If you have a valid Syncfusion<sup style="font-size:70%">&reg;</sup> license, you can **generate a license key for a specific version and product** from [this page](https://www.syncfusion.com/account/downloads).
5555

@@ -123,7 +123,7 @@ The following error message will be shown if the trial key has expired after 30
123123

124124
![Trial Expired](images/licensing-error-3.png)
125125

126-
**Solution:** <br /> Purchase from [here](https://www.syncfusion.com/sales/products) to get a valid Syncfusion<sup style="font-size:70%">&reg;</sup> license.
126+
**Solution:** <br /> Purchase a license [here](https://www.syncfusion.com/sales/products)
127127

128128
### Platform Mismatch
129129

@@ -171,12 +171,12 @@ If the application is registered with another version’s license key, the follo
171171

172172
### Facing licensing error message even after registering proper license keys
173173

174-
1. Ensure that respective version [Syncfusion.Licensing](https://www.nuget.org/packages/Syncfusion.Licensing/) nuget package or assembly is referred properly in the application.
174+
1. Ensure the [Syncfusion.Licensing](https://www.nuget.org/packages/Syncfusion.Licensing/) NuGet package or assembly matches the version used by other Syncfusion<sup style="font-size:70%">&reg;</sup> packages in the application.
175175

176-
2. Ensure that all the Syncfusion<sup style="font-size:70%">&reg;</sup> assemblies referenced are of the same version and that the corresponding version and product's license key are registered in the application.
176+
2. Verify all referenced Syncfusion<sup style="font-size:70%">&reg;</sup> assemblies are the same version and that a matching platform/version license key is registered in the application.
177177

178-
3. The license key should be registered before initializing any Syncfusion<sup style="font-size:70%">&reg;</sup> controls in the application. Refer [this](https://blazor.syncfusion.com/documentation/getting-started/license-key/how-to-register-in-an-application) page for more information on registering license keys.
178+
3. Register the license key before initializing any Syncfusion<sup style="font-size:70%">&reg;</sup> component. Refer [this](https://blazor.syncfusion.com/documentation/getting-started/license-key/how-to-register-in-an-application) page for more information on registering license keys.
179179

180-
4. Same version Syncfusion<sup style="font-size:70%">&reg;</sup> assemblies should be present in the application output folders or published folders.
180+
4. Ensure the same version of Syncfusion<sup style="font-size:70%">&reg;</sup> assemblies are present in the application output and published folders.
181181

182-
5. If you've upgraded the Syncfusion<sup style="font-size:70%">&reg;</sup> version and license keys in the application, try cleaning and rebuilding the application to see if that resolves the license error message.
182+
5. After upgrading Syncfusion<sup style="font-size:70%">&reg;</sup> packages and updating the license key, clean bin/obj and rebuild the application to clear cached trial assemblies.

0 commit comments

Comments
 (0)