Error: “Feature is not supported” (license key validation in .NET Standard)
This error occurs when Devart .NET Standard assemblies cannot validate a license key at runtime. The guidance applies to all dotConnect providers.
After migrating a working .NET Framework application to .NET Core / .NET 6–9 and referencing NuGet packages, the error appears when opening a database connection.
Unlike the full .NET Framework, .NET Core / .NET 6–9 requires a license key to be provided at runtime. If the key is missing or invalid, .NET Standard assemblies throw: “Feature is not supported.”
Resolution
Provide the license key in the connection string using the License Key parameter:
var conn = new Devart.Data.MySql.MySqlConnection();
conn.ConnectionString = "User Id=root;Host=localhost;Database=Test;License Key=YOUR_ACTIVATION_KEY;";
conn.Open();
Related Articles
Specifying the License Key in the Devart EF Core Model
This article is for dotConnect providers with ORM support (all except Universal and SQL Server). When creating a Devart EF Core model, the license key is not required at design time. However, during execution the following error may appear: “Feature ...
Where to Apply the License Key in dotConnect Providers
License key usage in dotConnect providers varies depending on the target framework. In .NET Framework projects, licensing is managed automatically during installation, whereas .NET Core and later versions require the license key to be provided at ...
How to Troubleshoot the 'License Not Activated' Error
If you encounter a "license not activated" error: Check the license status in the driver settings. Try restarting the application or server. Reactivate the license using Devart’s License Manager. For web apps, ensure the license file is accessible to ...
Where do I find my activation key?
If you've recently purchased a product and are wondering where to find your activation key, here’s a simple guide to help you out. Check Your Email Your license key is provided to you via email after the purchase. Be sure to check the inbox of the ...
Can a Single License Be Shared by Two Users on a Remote Machine?
According to the company's End User License Agreement (EULA) policy, each purchased license provides a key that can be used for activation on two machines simultaneously. For more details, please refer to the following link: Devart EULA. It's ...