Failed to set license. Details: Cannot find license 'Axemia.ThirdParty.Aspose.Pdf.Aspose.Pdf.lic'

stacktrace

at .€.SetLicense(String )

at Aspose.Pdf.License.SetLicense(String licenseName)

at Axemia.ThirdParty.Aspose.Pdf.Manager.SetLicense() in d:\TeamEOS\Framework\Source\Trunk\Axemia.ThirdParty.Aspose.Pdf\Manager.cs:line 68

at Axemia.ThirdParty.Aspose.Pdf.Manager…ctor(ManagerInputMessage inputMessage) in d:\TeamEOS\Framework\Source\Trunk\Axemia.ThirdParty.Aspose.Pdf\Manager.cs:line 20

at JVB.Bank.DocuFramework.Shared.ExternalFile.Preview(String initialen, String pathAndFilename, Boolean splitContent) in d:\TeamEOS\DocuFramework\trunk\Source\JVB\Bank\DocuFramework\Shared\ExternalFile.cs:line 162





code

private void SetLicense()

{

AP.License l = new AP.License();

l.SetLicense(“Axemia.ThirdParty.Aspose.Pdf.Aspose.Pdf.lic”);

l.Embedded = true;

}

Namespace

Axemia.ThirdParty.Aspose.Pdf



and lic file has correct name and is embedded…

Aspose.Pdf version 11.1.0.0



any idea ???

Hi Peter,


Thanks for contacting support.

As per my understanding, you have marked the license file as embedded and you are using default namespace of project (as per instructions over Using Embedded Resources), so license should be initialized. However we request you to please share the resource License file and information regarding your development environment i.e. Operating System, .NET Framework version etc. In order to share the license file, please follow the instructions specified over How to send a license?