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

Free Support Forum - aspose.com

Using ILMerge to merge Aspose.Cells in .NET

Trying use ILMerge to merge Aspose.Cells.dll into a single executable.

It was working with the previous Aspose.Cells DLL version.

Just upgraded to the latest version. Now I find the code...

Aspose.Cells.License license = new License();
license.SetLicense("Aspose.Cells.lic");

throws an exception, with the message

Value cannot be null.
Parameter name: key

Any suggestions how to fix this.?

Hi,

Thanks for your posting and using Aspose.Cells for .NET.

We have lately released a newer version. Please download and try the latest version:

Aspose.Cells for .NET 7.1.1

and let us know your feedback.

Downloaded Aspose.Cells 7.1.1 …

Still throws exception from ILMerged executable when attempting to set the licence.

Any suggestions appreciated.

For information:-
ILMerge verbose output lists…

Merging assembly ‘Aspose.Cells’ into target assembly.
Assembly level attribute ‘System.Security.AllowPartialTrustedCallerAttribute’ from assembly ‘Aspose.Cells’ being deleted from target assembly

No errors were reported by ILMerge.

Hi,

We have found your mentioned issue after closely checking it with ILMerge .

We will look into it.

Hi,


A ticket has been already logged with an id: CELLSNET-40390. for your issue into our issue tracking system (internal). Once we figure it out, we will provide the fix here.

Thank you.

Hi,

We obfuscated Aspose.Cells by SmartAssembly.

We checked this
issue with SmartAssebmly and got the reply :

You can’t use ILMerge with a SmartAssembly protected assembly because the
renaming and other features break the Reflection ILMerge uses to work out its’
own renaming scheme.