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

Free Support Forum - aspose.com

Aspose.Words license exception


While trying to set aspose.words license i get the following exception. Could you please help me identify what is causing the exception ?

at System.Reflection.Emit.InternalAssemblyBuilder.GetManifestResourceNames()
at x28925c9b27b37a46.x220f433da4115056.x0004f58017c756bc(Assembly xd3764619ec304ff0, String xf3a1146bd8778bac)
at x28925c9b27b37a46.x220f433da4115056.xde6236852622c268(String x1c1fc72fe1a3b4ea, Assembly x39e0a96279c40baa)
at x28925c9b27b37a46.x220f433da4115056.x7d0214bf69711dd9(String x1c1fc72fe1a3b4ea, Assembly x5807f920b6fc67c4)
at Aspose.Words.License.SetLicense(String licenseName)
at CdcSoftware.Respond.Server.DocumentConverter.DocToPdf(Byte[] wordFileData) in g:\Respond\5.11\5.11.1\Release\Source Code\Server\Common\Encoding\DocumentConverter.cs:line 28
at CdcSoftware.Respond.BusinessLayer.CaseManagement.EntityManager.SaveTemplateAttachmentDataToDatabase(Case caseEntity, Attachment attachment, Byte[] data, DateTime lastModifiedTime) in g:\Respond\5.11\5.11.1\Release\Source Code\Server\BusinessLayer\CaseManagement\EntityManager.cs:line 6632
at CdcSoftware.Respond.BusinessLayer.CaseManagement.EntityManager.SaveAttachmentDataToDatabase(Case caseEntity, Attachment attachment, Byte[] data) in g:\Respond\5.11\5.11.1\Release\Source Code\Server\BusinessLayer\CaseManagement\EntityManager.cs:line 6582

Code used to set license -

Aspose.Words.License asposeWordLicense = new Aspose.Words.License();

The license is added as am embedded resource and i am using .Net 4.0.
I have tried using both Aspose.Words 13 and 14. Both gives the same exception. Any help is greatly appreciated.


This is the exception -

The invoked member is not supported in a dynamic assembly

The stack trace is mentioned above
Hi Vaishnavi,

Thanks for your inquiry. To ensure a timely and accurate response, please create a standalone runnable simple console application (source code without compilation errors) that helps us reproduce your problem on our end. Your console application should have license file included in it as an embedded resource. Please also include the actual .lic file in a separate folder. As soon as you get this simple application ready, we'll start investigation into your issue and provide you more information. Please ZIP this console application and .lic file folder. In order to share the ZIP file, please follow the instructions provided in the following link:

How to send your license file to an Aspose staff member?

Best regards,