We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Set License Aspose.PDF for .NET - NotSupportedException: The invoked member is not supported in a dynamic assembly

using Aspose.Pdf 20.4 I have verified the license file IS IN the executable folder. I have even tried using an expicit path to the file.

public void SetPdfLicense()
{
Aspose.Pdf.License pdfLic = new Aspose.Pdf.License();
//string licenseLocation = “Aspose.Total.lic”;
pdfLic.SetLicense(“Aspose.Total.lic”);
}
I get an error the Inner Exception is
NotSupportedException: The invoked member is not supported in a dynamic assembly.

HELP! We have a live product that is affected.

@rileyja

Thanks for contacting support.

The reason of the issue cannot be determined without investigation and for that purpose, we need to reproduce the issue in our environment. Please try to create a sample small web application and share with us which is able to reproduce the error.

Furthermore, you may please try moving your license setting code to Global.asax in app_start() method as it may also help resolving the issue and is recommended way as well. Please also try to re-register the assemblies as this may also cause similar issue. Please share your feedback with us in case shared suggestions are not working.