I have this code in a PDF generation method:
Dim license As license = New license
License.SetLicense(Path.Combine(Request.PhysicalApplicationPath, "bin", "Aspose.Pdf.lic"))
I also tried simply:
Dim license As license = New license
License.SetLicense("Aspose.Pdf.lic")
I verified that the license file exists at the above path, but I still get this error:
Cannot find license 'C:\Users\MyUsername\source\repos\MyApp\Src\MyProject\bin\Aspose.Pdf.lic'.
If the license file is there (and it does appear to be a legitimate XML file, not just a placeholder), why is it not being found?