Free Support Forum - aspose.com

Setting the license file for aspose.words

I purchased Aspose.Total shortly ago. The directions tell me to place the license file in the our bin folder. That part is clear. Then, I would need to write the following code:

'Instantiate an instance of license and set the license file through its pathDim license As Aspose.Words.License = New Aspose.Words.License()license.SetLicense("Aspose.Total.lic")

Well, where do I instantiate an instance of the license? The directions for Aspose.Word says not to do that in code of the Aspx page because instantiating it on the page that uses Aspose.Word would mean the license is instantiated everytime Aspose.word is used,which is harmless but is waste of server resource. Instead, the directions for Aspose.word says to instantiate the license only once when the application starts, namely in the global.asax file.
Is that the case as well for Aspose.Total? The directions for Aspose.Total is silent on WHERE / WHEN the license should be instantiated.


This message was posted using Email2Forum by Merit.

Hi

Thank you for your interest in Aspose products. There is no difference what license you use Aspose.Words.lic or Aspose.Total.lic. You should call SetLicense from the Global.asax.cs (Global.asax.vb) file, in the Application_Start protected method. See the following link.
http://www.aspose.com/Products/Aspose.Words/Api/WhentoApplyaLicense.html

Please let me know if you would like to know something alse.

Best regards.

Hi,

I just purchased a license for the Aspose.word, and I have a question about applying the license...

I understand that I should be calling the SetLicense from the Global.asax.vb file. But what if I don't have the Global.asax file in my ASP.NET project? Can I call the SetLicense from elsewhere? Thanks.

Hi

<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />

Thanks for your request. Please follow these links to learn how and where to apply the license:
http://www.aspose.com/documentation/.net-components/aspose.words-for-.net-and-java/applying-a-license.html

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

Also, please check the points described in “Licensing” section in FAQ:
<A href="https://forum.aspose.com/t/2711</FONT></A> <BR><BR>Hope this helps.<BR><BR>Best regards,</SPAN></P>