Free Support Forum - aspose.com

How to place license file

I tried like this.

Aspose.Excel.Web.License license = new Aspose.Excel.Web.License();

license.SetLicense(“Aspose.Excel.Web.lic”); (I tried full path also)

It’s giving me the error couldn’t find license.

Thanks in advance.

What’s the name of your license file? Is it exact same as “Aspose.Excel.Web.lic”? Could you please post your license file here?

You can place the license file at the following places:

1. In the same folder with your program
2. In the same folder with Aspose.Excel.Web.dll
3. Include it in your project and build it as an embedded resource
4. If you place the file at other folder, such as d:\license. Please try the following code:

Aspose.Excel.Web.License license = new Aspose.Excel.Web.License();

license.SetLicense(“d:\license\Aspose.Excel.Web.lic”);

If you buy Aspose.Excel.Web with other products, your license file name may be “Aspose.Custom.lic”. If so, please change your code to:

Aspose.Excel.Web.License license = new Aspose.Excel.Web.License();

license.SetLicense(“Aspose.Custom.lic”);