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

Free Support Forum - aspose.com

Where to insert the license register code?

Hi.

I'm following your help file instructions to insert my evaluation license:

Dim license As Aspose.Slides.License = New Aspose.Slides.License()

'Pass only the name of the license file embedded in the assembly

license.SetLicense("Aspose.Slides.lic")

But I don't know where shall I insert it. On global.asax 'Application Start' event? On every my aspx page 'on load' event? Just on my functions thar are usind the Aspose component?

I need to run this code every time my website starts or just once on my server?

Regards,

Ésio Nunes

Hi Esio,

Thanks for your interest in Aspose.Slides.

The license needs to be set before any call to the Aspose.Slides API to avoid the evaluation watermark. It can be placed anyone of the places as mentioned by you. If it is set to be once, license code snippet can just be placed in Application_Start method of Global.asax. Doing so, all of the other aspx files in the web site will not require license to be set to avoid evaluation watermark.

Thanks and Best Regards