LicenseRequiredException

Exceptions · AiDotNet.Exceptions

Exception thrown when a model persistence operation (save or load) is attempted after the free trial period has expired and no valid license key is configured.

Inheritance: Exception → AiDotNetException → LicenseRequiredException

For Beginners

AiDotNet offers a free trial for model save/load operations. During the trial you can save and load models without restriction. Once the trial expires (after 30 days or 10 save/load operations, whichever comes first), you need to register for a free community license or purchase a commercial license at https://aidotnet.dev.

How It Works

Training and inference are never restricted — this exception only applies to SaveModel() and LoadModel() operations.

How to resolve:

Constructors

Constructor Summary
LicenseRequiredException() Creates a new LicenseRequiredException with a default message.
LicenseRequiredException(TrialExpirationReason reason, int? trialDaysElapsed, int? operationsPerformed) Creates a new LicenseRequiredException with trial expiration details.
LicenseRequiredException(string message) Creates a new LicenseRequiredException with a specified error message.
LicenseRequiredException(string message, Exception innerException) Creates a new LicenseRequiredException with a specified error message and a reference to the inner exception that is the cause of this exception.

Properties

Property Summary
TrialExpirationReason ExpirationReason { get; } Gets the reason the trial expired.
int? OperationsPerformed { get; } Gets the number of save/load operations performed during the trial.
int? TrialDaysElapsed { get; } Gets the number of days the trial was active before expiring.