Using the Aspose.Total License with Aspose.Cells

I'm having some problems using Aspose.cells with my Aspose.Total License.

I have added the Aspose.Total license as an embedded resource to the Solution, and set the build Action. I have then used the following code to reference the license.

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

When executing this code I get a fileNotFound error and log file shows that it can't find Aspose.Cells.lic. Why is the code looking for Aspose.Cells.lic?

How do I correct this?

Thanks,

Kathy

Hi Kathy,

As the error suggests it could not find the Aspose.Total.lic file for some odd reason, this error is regarding System.IO namespace and not about Aspose.Cells component. So you got to make sure that the file (with the same name and extension) exists in your project. We recommend you please set the license file path explicitly in your code to check if the problem still persists.

Thank you.