Aspose.PDF integration with .Net 6 Lambda

I am using Aspose.PDF 19.2 version. Since I have license for this version.
I am including the license file in the zip file which I am uploading to lambda function.
But I am getting the System.Exception with the following code.

var license = new Aspose.Pdf.License();
var licensePath = “Aspose.Total.lic”;
license.SetLicense(licensePath);

I am able to log the content of the license file.
And also I have tried license file with Embedded resource. But getting the same error.
The same code works fine with .net frame work 4.6
Can you please help me out.

@rshaik

We recommend that you please try the latest version of the API i.e. 24.10 with a 30-days free temporary license as a lot of updates have been made to the API. Please use it and let us know if issue still persists.