# Syncfusion<sup style="font-size:70%">&reg;</sup> Licensing Errors

Licensing error popup is displayed with various messages under different circumstances. Here are some ways to resolve different issues.

## Licensing errors 

### License key not registered\Trial Expired 

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. 

**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.

![License key not registered](licensing-images/new-licensing-alert.png)

**Solution:** 

* Generate a valid license key from here [Licensed users](https://www.syncfusion.com/account/downloads) or [Trial users](https://www.syncfusion.com/account/manage-trials/downloads) for a specific version and platform or License keys can also be generated from the Claim License Key page by clicking the **"Claim License"** button click from Syncfusion<sup style="font-size:70%">&reg;</sup> licensing warning message. Refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/how-to-generate#Claim-License-Key) for more details.

* In your application, register the generated license key. Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/how-to-register-in-an-application) for information on registering the license key.

### Invalid key

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. 

**Error Message:** The included Syncfusion<sup style="font-size:70%">&reg;</sup> license key is invalid.

![License key not registered](licensing-images/new-invalid-key.png)

**Solution:**

* Generate a valid license key from here [Licensed users](https://www.syncfusion.com/account/downloads) or [Trial users](https://www.syncfusion.com/account/manage-trials/downloads) for a specific version and platform or License keys can also be generated from the Claim License Key page by clicking the **"Claim License"** button click from Syncfusion<sup style="font-size:70%">&reg;</sup> licensing warning message. Refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/how-to-generate#Claim-License-Key) for more details..

* In your application, register the generated license key. Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/how-to-register-in-an-application) for information on registering the license key.

Refer to the license key [generation](https://help.syncfusion.com/common/essential-studio/licensing/how-to-generate) and [registration](https://help.syncfusion.com/common/essential-studio/licensing/how-to-register-in-an-application) topic.

## Licensing errors from version 16.2.0* to 20.3.0*

### License key not registered 

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. 

**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>. Please include a valid license to permanently remove this license validation message. You can also obtain a free 30 day evaluation license to temporarily remove this message during the evaluation period. Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#license-key-not-registered) for more information.

![License key not registered](licensing-images/licensing-alert.png)

**Solution:** 

* Generate a valid license key from here [Licensed users](https://www.syncfusion.com/account/downloads) or [Trial users](https://www.syncfusion.com/account/manage-trials/downloads) for a specific version and platform.

* In your application, register the generated license key. Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/how-to-register-in-an-application) for information on registering the license key.

### Invalid key

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. 

**Error Message:** The included Syncfusion<sup style="font-size:70%">&reg;</sup> license is invalid. Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#invalid-key) for more information.

![License key not registered](licensing-images/invalid-key.png)

**Solution:**

* Generate a valid license key from here [Licensed users](https://www.syncfusion.com/account/downloads) or [Trial users](https://www.syncfusion.com/account/manage-trials/downloads) for a specific version and platform.

* In your application, register the generated license key. Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/how-to-register-in-an-application) for information on registering the license key.

### Trial Expired

The following error message will be shown if the trial key has expired after 30 days.

**Error Message:** Your Syncfusion<sup style="font-size:70%">&reg;</sup> trial license has expired. Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#trial-expired) for more information.

![License key not registered](licensing-images/trial-expired.png)

**Solution:** Purchase from [here](https://www.syncfusion.com/sales/products) to get a valid Syncfusion<sup style="font-size:70%">&reg;</sup> license.

### Platform Mismatch

If the application is registered with another platform's license key, the following error message will pop up when launching the application.

**Error Message:** The included Syncfusion<sup style="font-size:70%">&reg;</sup> license is invalid (Platform mismatch). Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#platform-mismatch) for more information.

![License key not registered](licensing-images/platform-mismatch.png)

**Solution:**

* Generate a valid license key from here [Licensed users](https://www.syncfusion.com/account/downloads) or [Trial users](https://www.syncfusion.com/account/manage-trials/downloads) for a specific version and platform.

* In your application, register the generated license key. Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/how-to-register-in-an-application) for information on registering the license key.

### Version Mismatch

If the application is registered with another version's license key, the following error message will pop up when launching the application.

**Error Message:** The included Syncfusion<sup style="font-size:70%">&reg;</sup> license ({Registered Version}) is invalid for version {Required version}. Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/licensing-errors#version-mismatch) for more information.

![License key not registered](licensing-images/version-mismatch.png)

**Solution:**

* Generate a valid license key from here [Licensed users](https://www.syncfusion.com/account/downloads) or [Trial users](https://www.syncfusion.com/account/manage-trials/downloads) for a specific version and platform. Kindly follow the [KB](https://www.syncfusion.com/kb/8976/how-to-generate-license-key-for-licensed-products) to generate license key.

* In your application, register the generated license key. Please refer to this [help topic](https://help.syncfusion.com/common/essential-studio/licensing/how-to-register-in-an-application) for information on registering the license key.

## 'Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense' does not exist in the current context

**The name Syncfusion.Licensing.SyncfusionLicenseProvider.RegisterLicense does not exist in this context** typically occurs when **“Syncfusion.Licensing”** package/assembly is not referenced properly in the project or license registration code used outside of the App() constructor or directly used inside the class. Ensure that the license registration code is properly included inside the App() constructor.

## Could not load Syncfusion.Licensing.dll assembly version...?

Please ensure that all Syncfusion<sup style="font-size:70%">&reg;</sup> NuGet packages including [Syncfusion.Licensing](https://www.nuget.org/packages/Syncfusion.Licensing) were installed properly, and assembly references are upgraded to the required version. Also, verify that the csproj and packages.config/web.config files references have been referred with the updated version.

To avoid run-time errors, set copy local to true. Copy Local determines whether a reference is copied to the project output path.

![Set copy local to true](licensing-images/SetCopyLocalTrue.png)

Set “CopyLocal” as True for Syncfusion.Licensing.dll along with all other Syncfusion<sup style="font-size:70%">&reg;</sup> assemblies and ensure that the Syncfusion.Licensing.dll assembly is also present in the output folder or deployment folder of the application.

![Output folder](licensing-images/OutputFolder.png)

Refer to this knowledge base articles to set [copy local](https://www.syncfusion.com/kb/4808/how-to-resolve-server-error-could-not-load-or-assembly-when-publishing-an-application) as true.


