Evaluate Aspose.ZIP

You can download Aspose.ZIP for .NET free of cost for evaluation. The evaluation version provides almost all functionality of the product with certain limitations. The same evaluation version becomes licensed when you purchase a license and add a couple of lines of code to  apply the license.

If you want to test Aspose.ZIP without evaluation version limitations, you can also request a 30 Day Temporary License. Please refer to  How to get a Temporary License?

Evaluation Version Limitations

The evaluation version of Aspose.ZIP (without a license specified) provides full product functionality except for some evaluation limitations.

Usage contextRestrictions
Size of data to compressNo more than 5,032,768 bytes of each entry to be compressed
Size of data to decompressNo more than 5,000,000 bytes of each entry to be decompressed
CRC verification on decompressionNot performed
MAC verification on decompression in an encrypted fileNot performed
Number of entries compressedNo more than 10
Extraction by running self-extracted archiveNo more then 10 files no more than 5,000,000 bytes each

Applying a License

You can easily download an evaluation version of Aspose.ZIP from its  download page. The evaluation version provides absolutely the same capabilities as the licensed version of Aspose.ZIP. Furthermore, the evaluation version simply becomes licensed when you purchase a license and add a couple of lines of code to apply the license.

About the License

The license is a plain-text XML file that contains details such as the product name, number of developers it is licensed to, subscription expiry date and so on. The file is digitally signed, so don’t modify the file. Even the inadvertent addition of an extra line break into the file will invalidate it.

You need to set a license before utilizing Aspose.ZIP if you want to avoid its evaluation limitations. It is only required to set a license once per application (or process).

Apply License Using File or Stream Object

Setting a License in Aspose.ZIP for .NET

In Aspose.Zip, the license can be loaded from a file, stream or an embedded resource. Aspose.ZIP tries to find the license at the following locations:

Apply License using File or Stream Object

The easiest way to set a license is to put the license file in the same folder as that of the DLL of the component (included in Aspose.ZIP) and specify just the file name without its path.

1 // Instantiate an instance of license and set the license file through its path
3Aspose.ZIP.License license = new Aspose.ZIP.License();
1 // Instantiate an instance of license and set the license through a stream
3Aspose.ZIP.License license = new Aspose.ZIP.License();

When you call the SetLicense method, the license name should be the same as that of your license file name. For example, you may change the license file name to “Aspose.ZIP.lic.xml”. Then in your code, you should use the modified license name (that is Aspose.ZIP.lic.xml) for the SetLicense method.

Including the License File as an Embedded Resource

Another neat way of packaging the license with your application and making sure it will not be lost, is to include it as an embedded resource into one of the assemblies that call the DLL of the component (included in Aspose.ZIP). To include the license file as an embedded resource, perform the following steps:

Please review the example given below to understand this method of setting a license (embedded) in your applications.

1 // Instantiate the License class
3Aspose.ZIP.License license = new Aspose.ZIP.License();
5// Pass only the name of the license file embedded in the assembly

Applying a Metered (pay-per-use) license

A Metered license is a licensing mechanism that allows customers to be billed based on the usage of the API features. For more details, please refer to Metered Licensing FAQ section. To activate the Metered license you need public and private keys.

Applying a Metered license is as simple as those two lines of code:

1var metered = new MeteredLicense();
2metered.SetMeteredKey("<public key>", "<private key>");
Subscribe to Aspose Product Updates

Get monthly newsletters & offers directly delivered to your mailbox.