A neat way of packaging the license with your application and making sure it will not be lost is to include it as an embedded resource into one of the assemblies that calls Aspose.Words. To include the file as an embedded resource perform the following steps:
- In Visual Studio .NET, include the .lic file into the project using the File | Add Existing Item... menu.
- Select the file in the Solution Explorer and set Build Action to Embedded Resource in the Properties window.
- In your code, invoke SetLicense passing only the short name of the resource file.