We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

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:

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/applying-a-license.html

... 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<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

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.

http://www.aspose.com/documentation/file-format-components/aspose.words-for-.net-and-java/when-to-apply-a-license.html

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<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

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.