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;