Resolving the invalid Syncfusion license due to platform mismatch for Blazor
Resolving the invalid Syncfusion® license due to platform mismatch for Blazor
In a Blazor application, you may encounter the runtime message: “Syncfusion® license is invalid (platform mismatch)”, even if a valid Syncfusion® Blazor license key is registered in the Startup.cs file. This issue occurs when the application is built using Syncfusion® Blazor components but references Syncfusion® NuGet packages version 17.4.0.39 from NuGet.org, which can lead to a platform mismatch.
Fig: Syncfusion® licensing error message
Syncfusion® republished the modified Syncfusion.Licensing NuGet package (version 17.4.0.39) on December 20, 2019, to NuGet.org. If your project references this package and it was added on or before December 20, 2019, you may encounter licensing issues. To resolve this, please follow the steps outlined below.
- Download the Syncfusion.Licensing package and extract the downloaded zip file.
- Run the start.bat file to replace the modified Syncfusion.Licensing package into NuGet cache location.
- Open the Blazor application in Visual Studio, for which you are receiving the “Syncfusion® license is invalid (Platform mismatch)” message.
- Right-click the solution file in the Solution Explorer and select the Clean Solution.
- Make sure whether the valid Syncfusion® Blazor license key is registered in Startup.cs file of the application. Refer to the user guide to know about the license key generation and register in application.
- Compile and run the application to avoid the licensing error message.