Productive Keys are not working correctly

Hello,

I received my productive license keys today. I integrated them, as an embedded resource, please see code.

During a lot of test my logfiles told me: ,You are using an evaluation copy and have opened files exceeding limitation"

It’s really urgent, that the keys are working coorectly. Please help soon.

    public void ActivateAsposeLicenses()
    {
        Aspose.Words.License licenseWord = new Aspose.Words.License();
        licenseWord.SetLicense("Aspose.Words.NET.lic");
        // For test license key:
        // string licenseFileNameWord = Path.Combine("C:\\Program Files\\SigningTool\\li\\", "Aspose.Wordsfor.NET.lic");
        // licenseWord.SetLicense(licenseFileNameWord);
        //
        Aspose.Cells.License licenseCells = new Aspose.Cells.License();
        // Nach einem evtl. Austausch der Datei unter Resources muss diese auf embedded und not copy gesetzt werden.
        licenseCells.SetLicense("Aspose.Cells.NET.lic");
        // For test license key:
        // string licenseFileNameCells = Path.Combine("C:\\Program Files\\SigningTool\\li\\", "Aspose.Cellsfor.NET.lic");
        // licenseCells.SetLicense(licenseFileNameCells);
    }

@extBeniL

It seems that you are experiencing issues with your Aspose license keys not being recognized correctly, resulting in messages indicating that you are using an evaluation copy. Here are some steps you can take to troubleshoot and resolve this issue:

  1. Check License File Path: Ensure that the license files (Aspose.Words.NET.lic and Aspose.Cells.NET.lic) are correctly embedded as resources in your project. The file names must match exactly with what you are using in your code.

  2. Verify Embedded Resource Settings: Make sure that the license files are set as “Embedded Resource” in your project properties. If they are set to “Copy to Output Directory,” this could cause issues.

  3. Confirm License Loading: After setting the license, you can check if it has been loaded successfully. For example, you can use the IsLicensed property of the Workbook class in Aspose.Cells to verify if the license is applied correctly. Here’s a code snippet to help you check:

    Workbook workbook = new Workbook();
    Console.WriteLine("Is licensed: " + workbook.IsLicensed);
    
  4. Error Handling: Implement error handling around the license setting code to catch any exceptions that may occur. This can help you identify if there are issues with loading the license file.

  5. Testing with Absolute Path: As a temporary measure, you can test loading the license using an absolute path to ensure that the issue is not related to the embedded resource. For example:

    string licenseFilePath = @"C:\Path\To\Your\License\Aspose.Words.NET.lic";
    licenseWord.SetLicense(licenseFilePath);
    
  6. Check for Multiple Instances: Ensure that you are not inadvertently creating multiple instances of the license class or setting the license multiple times, which could lead to conflicts.

If you follow these steps and still encounter issues, consider reaching out to Aspose support for further assistance, as they can provide more specific guidance based on your situation.

If you need more detailed examples or further assistance, feel free to ask!

Sources:

@extBeniL ,

  1. As described, you may first test with absolute path to make sure that the license file itself is OK.

If license file is not found, there should be an exception “Cannot find license …”.
3. You may also try to get embedded source stream of license file, then set the stream to Aspose.Cells.License.

Aspose.Cells.License licenseCells = new Aspose.Cells.License();
licenseCells.SetLicense(embeddedSourceStream);

If you still have issues, please create a simple project that can reproduce your issue, and share it to us.

Hi, thank you for your fast answers. The productive license files are working, otherwise I couldn’t start my application. And I also can make around 250-300 anlayse checks and file conversioning, where I use the Aspose.Cells and Aspose.Words modules for. But after around 250-300 times I used the Aspose functions, the systems says, that I’m using an evaluation key. Message: ,You are using an evaluation copy and have opened files exceeding limitation". With the evaluation keys, I used before it happens, when I use my application in the compiled version. Than the system also told me, that I’m using an evaluation key, after around 250-300 times, when I’m using the Aspose functions.

@extBeniL
Please refer to the following document to check if the license was loaded successfully.

Hi John, thank you for thge good links. I found me problem. In my last version, I didn’t loaded the procedure for reading the license files not correctly. Now I can go on with my testing.

@extBeniL
Thank you for your feedback. You are welcome. I’m glad your issue has been resolved. If you have any questions, please feel free to contact us at any time.