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. https://docs.aspose.com/words/net/licensing/
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.