Hi,
I have a librairy created in .net 4.5.1 with visual studio 2015.I put the license file in "Embedded Resource" of the librairy.
this librairy is used in a test console program and a service,
When I set the license with file name aspose excel, word... they work but not aspose.pdf.
Code with generate an exception
elicense.SetLicense("Aspose.Total.lic");
wlicense.SetLicense("Aspose.Total.lic");
pdfLicense.SetLicense("Aspose.Total.lic"); --> exception with license not found
noteLicense.SetLicense("Aspose.Total.lic");
slideLicense.SetLicense("Aspose.Total.lic");
diagramLicense.SetLicense("Aspose.Total.lic");
Work around
elicense.SetLicense("Aspose.Total.lic");
wlicense.SetLicense("Aspose.Total.lic");
using (Stream stm = GetType().Assembly.GetManifestResourceStream("MyLibrairy.Aspose.Total.lic"))
{
pdfLicense.SetLicense(stm);
}
noteLicense.SetLicense("Aspose.Total.lic");
slideLicense.SetLicense("Aspose.Total.lic");
diagramLicense.SetLicense("Aspose.Total.lic");
best regards