License Activation
Apply the license (.lic) in your application using the SetLicense
method, which is provided by the License
class in the corresponding namespace of each Wordize module. License activation must precede all other SDK operations.
If the license file is in the application directory:
var license = new Wordize.{ModuleNamespace}.License();
license.SetLicense("my.lic");
If the license is embedded as a resource, load it via a stream:
using (var stream = Assembly.GetExecutingAssembly()
.GetManifestResourceStream("my.lic"))
{
var license = new Wordize.{ModuleNamespace}.License();
license.SetLicense(stream);
}
Activation of Multiple Licenses
To activate multiple licenses:
- Place all license files (.lic) into your project directory.
- Call the
License.SetLicense
method for each module using the corresponding license file. - Ensure that the correct namespace is referenced for each module to avoid activation errors.
Security Requirements
Wordize license (.lic) files are XML-based, digitally signed documents that confirm your usage rights. To ensure security compliance, store such files in a secure location to prevent unauthorized access. It is recommended that you use licenses as an embedded resource. For example, in .NET projects, add licenses to a separate folder and set the build action to ‘Embedded Resource’. This ensures that the licenses are embedded as part of your application binary. If external storage is required, use a secure directory with limited access rights. Avoid hard-coding absolute paths. Instead, use relative paths or environment variables such as %WORDIZE_LICENSE_PATH%
to provide flexibility in deployment environments (dev, staging, production). For cloud applications, use secure storage solutions such as Azure Key Vault, AWS Secrets Manager, or environment-specific configuration files to embed license content at runtime. Never place license files in public repositories - use .gitignore
to exclude them.
Your license files should not be distributed natively as part of your final solution. To protect license files from unauthorized access, we also recommend encrypting their contents in your application. Please refer to the Documentation for details on how to do this.
Possible Problems with License Activation
If you are unable to activate the license file, try the following steps:
- Check the license file extension. When you downloaded the license from a website, it may have happened that your browser recognized the license file as an XML file and automatically appended the .xml extension to it. If you see that your license file name ends with the double extension .lic.xml, delete the .xml at the end and leave only .lic.
- Make sure you apply the license to the appropriate version of Wordize SDK, i.e. the version that was released during your subscription period.
- Make sure your license file (.lic) is accessible to your application. The file should either be placed in the same directory as your application’s executable or included as an embedded resource in your project. Also check file and directory permissions.
- Make sure you are referring to the exact module you want to activate. To do this, check the namespace in which you are accessing the
License
class. - Make sure you call the
SetLicense
method before using any Wordize classes.
If the problem persists, contact support team on Forum or write an email to support@wordize.com.