Ok, we are talking old code here - one dll with an embeded Aspose.Total.lic -- and the license is working just fine for most of the products. In fact, "recently" it was working for all the products.
I have tied the problem to this: Apose.pdf 4.6 workds, but aspose.pdf v5.0.0 throws the exception.
And since only the aspose.pdf.license fails...I'm pretty sure my embedded resource is ok:
Dim pdfLicense As Aspose.Pdf.License = New Aspose.Pdf.License
pdfLicense.SetLicense("Aspose.Total.lic")
Convert to PDF error - System.IO.FileNotFoundException: Cannot find license 'Aspose.Total.lic'.
at ..(String , Assembly , Boolean )
at ..(String , Assembly )
at ..(String , Assembly , Boolean )
at Aspose.Pdf.License.SetLicense(String licenseName)
at Spitfire.sfWebTool.sfDocLinkBase.ConvertImageToPDF(String fileName, String title) in D:\SpitfireDev\sfDashboard\sfWebTool\sfDocLink.vb:line 2215
But this works:
Dim wordLicense As Aspose.Words.License = New Aspose.Words.License
wordLicense.SetLicense("Aspose.Total.lic")
AND
Dim xlLicense As Aspose.Cells.License = New Aspose.Cells.License
xlLicense.SetLicense("Aspose.Total.lic")
AND:
Dim license As New Aspose.Pdf.Kit.License
license.SetLicense("Aspose.Total.lic")
Aspose.Pdf, Version=5.0.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56
Aspose.Pdf.Kit, Version=5.3.0.0, Culture=neutral, PublicKeyToken=ae9e610db67fc2c1
Aspose.Words, Version=9.7.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56