Setlicense giving error

Aspose.Words.License license = new Aspose.Words.License();
license.SetLicense(“Images/Aspose.Total.lic”);

I have placed the license file in Images folder. I also tried placing it in /bin folder where the aspose.words dll is located. In either case, i get the following error.

An exception of type
‘System.NotSupportedException’ occurred in mscorlib.dll but was not
handled in user code Additional information: The invoked member is not
supported in a dynamic assembly.

i get this error.



Hi Venkatesh,

Thanks for your inquiry. Please make sure the license file was not modified i.e. the license file
becomes corrupted if it’s modified in any way and it’s digital
signature does not match the content of the file. Please
post your license file via mail to us. We will investigate the issue on
our end and provide you more information. In order to post your license
file to us please follow the instructions provided in the following
link:
https://forum.aspose.com/t/how-to-send-license-file-to-support-team/225542

Please read following documentation links for your kind reference.
http://www.aspose.com/docs/display/wordsnet/When+to+Apply+a+License
http://www.aspose.com/docs/display/wordsnet/Applying+a+License