Applying Aspose.Words License

Hi,
I’ve been using a trial version of Aspose.Words for some time now, and i has proved to be a very handy component, so I recently purchased the full version. I read the document outlinig how to apply the license:
https://docs.aspose.com/words/net/licensing/
… and I am quite frankly let down that I have to implement code changes to apply a license!! Is there no other way to apply this license without making code changes??
Please let me know. Thanks.
-Jafar

Hi
Thanks for your inquiry. No, there is no way to apply license without these two lines for code. Please see also the following link to learn when to apply license.
https://docs.aspose.com/words/java/licensing/
Best regards.

Gotcha. So I did this as recommended, and added the following code to my class constructor:

Aspose.Words.License license = new License();
license.SetLicense(@“C:\Aspose.Words License\Aspose.Words.lic”);

I also placed the license in the folder mentioned in the code above. When I hit the line of code that invokes the SetLicense method, I get the following error message:

“Root element is missing.”

What could I be doing wrong here? (One thing I noticed is that the .lic file is 0 KB… I’m guessing that’s the issue)
Thanks!

Hi
Thank you for additional information. Yes, this is the problem. Please contact our sales team to resolve this issue (you can contact them in the Aspose.Purchase forum)
Best regards.