Setting License & Avoiding Invoked member is not Supported in a Dynamic Assembly Error | Aspose.Words for .NET

I have even tried using aspose.word but return error.
" There was an error setting the license: Invoked member is not supported in a dynamic assembly "

the code implement is:
/VALIDA LICENCIA DEL ASPOSE/
Aspose.Words.License license = new Aspose.Words.License();
try
{
license.SetLicense(“Aspose.Words.lic”);
}
catch (Exception e)
{
console.Write("\nThere was an error setting the license: " + e.Message);
}
/TERMINA LA LICENCIA DEL PDF/

@ernestogs10,

What exact version of Aspose.Words for .NET are you currently getting this problem with? Please also 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.

How to apply Aspose.Words License?

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