Free Support Forum - aspose.com

Upgraded to ASPOSE 20.3 and now License is not Accepted

We have used Aspose.Cells for Export to Excel functionality. We are able to perform Export to Excel functionality and download required data in Excel format. However, Excel gets downloaded with additional sheet where it shows following warning.
“Evaluation Only. Created with Aspose.Cells for .NET.Copyright 2003 - 2020 Aspose Pty Ltd.”
PDF is generated with required data, but with Evaluation version warning and watermark.
“Evaluation Only. Created with Aspose.Words. Copyright 2003-2020 Aspose Pty Ltd.”

@aliceakin,

Thanks for providing us details.

Well, your license should work fine with the newer versions of Aspose APIs if your license subscription allows this. For your information, when you purchase a License Subscription, then you are entitled to use free versions and fixes to upgrade your application with newer releases of the product(s) inside Aspose.Total package for a period of next 1-year starting from the Date of your Purchase. The license will never expire if you use a version of the product that should be released before your subscription expiry date. You may open your license file into notepad and check the license expiry date and confirm us. If your license subscription is expired to use newer versions of the product(s) and if you want to use a version of a product that is released after your subscription expiry date, then I am afraid, you have to upgrade your subscription.

If your license subscription is not expired to use Aspose for .NET APIs, then make sure that your licensing code should be processed once in the whole application life cycle. Also, the licensing code should be processed first and before using any APIs (in code) of the product(s).

Hope, this clarifies it. Let us know if you have any confusion or issue.

Thank you for your response. We are still seeing the issue.
1-we have checked the expiry date in our .lic file which is not expired
20200830
2-we process the license first before calling the API. We are using below snippet, and see no error when we apply the license (no error is logged). Please recommend if there are changes that we need to make to this logic:

public static void ApplyAsposeLicense(AposeComponents componentType)
{
string strFileName = “KPMG.ITSGlobal.Common.Aspose.Total.lic”;
System.IO.Stream stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(strFileName);
if (stream != null)
{

            switch (componentType)
            {
                case AposeComponents.cells:
                    Aspose.Cells.License asposeCellsLicense = new Aspose.Cells.License();
                    asposeCellsLicense.SetLicense(stream);
                    break;
                case AposeComponents.words:
                    Aspose.Words.License asposeWordLicense = new Aspose.Words.License();
                    asposeWordLicense.SetLicense(stream);
                    break;
            }
        }
        else
        {
            Logger.LogError(SPCustomCategory.CommonFoundation.ToString(), "Exception in method KPMG.ITSGlobal.Common.Foundation.ApplyAsposeLicense(), cannot load file " + strFileName + " in embedded resource");
        }
    }

====below is snippet where we create workbook using API

@aliceakin,

It looks like your licensing code is not processed. Please make sure the licensing code is processed first in your application. You may set some break points on the specified lines of code to make sure if these lines are processed or not. Moreover, you may dynamically check in code if the license is set or not, see the lines of code regarding Aspose.Cells:
e.g
Sample code:

Workbook workbook = new Workbook();
//Check if the license is set
Console.WriteLine(workbook.IsLicensed);

Hope, this helps a bit.