Follow these simple rules:
· The license only needs to be set once per application domain.
· You need to set the license before using any other Aspose.Words classes.
Calling License.SetLicense multiple times is not harmful, but simply wastes processor time.
If you are developing a class library, you can call License.SetLicense from a static constructor of your class that uses Aspose.Words. The static constructor will execute before an instance of your class is created making sure Aspose.Words license is properly set.