Free Support Forum - aspose.com

Set License while Avoiding The Invoked Member is not Supported in a Dynamic Assembly Error C# .NET

Hi,

Tried same but still same issue.

Thanks & Regards,
Manjunath.

@srisaimanjunath,

Please post your license file ‘via private message’. In order to send a private message with attachment, please click on my name and find “Message” button.

We will then investigate the issue with your license file on our end and provide you more information.

@srisaimanjunath,

It is to inform you that we had received your license file and your “Aspose.Words.NET.lic” file worked fine on our end when using the latest (21.5) version of Aspose.Words for .NET. We used the following simple C# code to test this license file on our end.

using Aspose.Words;
using System;

namespace AwNetTestApp_New
{
    class Program
    {
        static void Main(string[] args)
        {
            License license = new License();
            var isLicensed = false;
            try
            {
                license.SetLicense("C:\\Temp\\229059 license\\Aspose.Words.NET.lic");
                isLicensed = true;
            }
            catch (InvalidOperationException)
            {
                // the License.SetLicense() method will throw InvalidOperationException
                // for an invalid/wrong/expired license etc.
                isLicensed = false;
            }

            if (isLicensed)
            {
                Console.WriteLine("License is fine");

                Document doc = new Document();
                DocumentBuilder builder = new DocumentBuilder(doc);

                builder.Writeln("Hello World!!!");

                doc.Save(@"C:\Temp\output.pdf");
            }
            else
            {
                Console.WriteLine("License not applied");
            }

            Console.WriteLine("End of process... press any key");
            Console.Read();
        }
    }
}

So, we strongly recommend that you please upgrade to the latest version of Aspose.Words for .NET API and refer to following section of documentation:

Hello Hafeez,

Thanks, Working fine now.

Thanks & Regards,
Manjunath.