Quantcast
Channel: Aspose.Pdf Product Family
Viewing all articles
Browse latest Browse all 3131

Unable to set license in Session_Start or Application_Start

$
0
0
Trying to set the license using an embedded resource, but it is not working for me. Sometimes it shows the evaluation watermark, other times it does not. Tried in both Session_Start and Application_Start and seeing the same issue with both. Only way I can get it to work is if I set it right before I use the Aspose.Pdf to generate the PDF. Below is how I am setting the license:

Aspose.Pdf.License license = new Aspose.Pdf.License();
license.SetLicense("MyAssembly.Aspose.Pdf.lic");
license.Embedded = true;

Viewing all articles
Browse latest Browse all 3131

Trending Articles