Exception while applying license for Aspose.Cells

Hi @alexey.noskov ,

Can you please suggest us all of sudden we saw below error for aspose cells version even though we have license for aspose total.

Thanks,
Priyanka.

@priyanka9 I moved your question to Aspose.Cells forum. My colleagues will help you shortly.

@priyanka9
Do you use the latest license on the old version? Please note, newer licenses are signed with sha256 but older ones were signed with sha1. You cannot use a sha256 license with older versions of the API. You may use your older license to work with older Aspose.Cells for Java version and use new license to work with newer Aspose.Cells for Java versions. This will always work.

Furthermore, you may request for an updated (new) license (in purchase section) that should be signed with sha1. The updated license will be compatible and can be used with older Aspose.Cells versions as well.

In addition, you can refer to the following documents to set and check if the License has been successfully set.

Thanks @John.He /@alexey.noskov for your reply.
How we can know whether we are using latest license or old license ?
This issue we are seeing after migrating aspose words and excel to newer version 24.3.

Can you please suggest us how can we verify whether we are using older license or newer and whatever we are using that license can we use for version 24.3?

@priyanka9

As previously replied, you need to apply for a new license. At present, there is no way to determine whether it is an old signature or a new signature through code. Sorry for any inconvenience caused to you.

Ok will request for new license thanks @John.He

@priyanka9
You are welcome. If you have any questions, please feel free to contact us.

@priyanka9
Please update to the latest version v24.4 first. You can use the following code to check the current version and license setting status.

System.out.println(CellsHelper.getVersion());

// Create workbook object before setting a license
Workbook workbook = new Workbook();

// Check if the license is loaded or not
// It will return false
System.out.println(workbook.isLicensed());

// Set the license now
String licPath = filePath + "Aspose.Cells.Java.lic";

com.aspose.cells.License lic = new com.aspose.cells.License();
lic.setLicense(licPath);

// Check if the license is loaded or not
// Now it will return true
System.out.println(workbook.isLicensed());

If there are still license settings issues after updating the version, please share the license with us. Please send the license to this email address: John.He@aspose.com, we will check it soon.

Hi @John.He thanks for ur rly,
As i said earlier we recently upgraded to version 24.3 but actually issue is somehow we didnt set license for aspose cells we set license only for aspose words that is causing issue after version update but before eventhough if we didnt set version it worked.

Now after adding license for aspose cells the issue disappered. So still do we need to migrate version form 24.3 to 24.4 ?

Thanks,
Priyanka.

@priyanka9
Thank you for your feedback. You can continue to use v24.3. In the latest version, we have supported some new features and fixed some discovered issues. Please review the following document.

You can choose whether to update the version according to your actual needs.