Removal of invalid product keyAnswered

Dear support team,

My company received feedback from one of our new licensees where he claims that he entered a wrong license key and he is unable to enter it again.

In our implementation we make calls to the C# TA API, we do not use the TA wizard.

The situation looks like this:

On the first run of the application, the following was called:

  • IsGenuine(90, 30) returned IsGenuineResult.NotGenuine
  • IsActivated() returned false
  • IsProductKeyValid() returns false
  • CheckAndSavePKey(entered_key, TA_Flags.TA_SYSTEM) returned true
  • Activate() threw InvalidProductKeyException (The product key is invalid or there's no product key.)

On subsequent runs:

  • IsGenuine(90, 30) returns IsGenuineResult.NotGenuine
  • IsActivated() returns false
  • IsProductKeyValid() returns true
  • Activate() throws InvalidProductKeyException (The product key is invalid or there's no product key.)

On the LimeLM dashboard the product key that was given to the licensee is not activated and has never been.

As you can see, the application does not call CheckAndSavePKey since IsProductKeyValid returns true, however the activation fails.

We tried:

  1. Checking what key was entered. We prepared a special application that calls GetPKey() and asked the licensee to run it. It did not throw any exception, instead it returned a product key that does not match the product key that was given to the licensee. Also it does not match any of the product keys that we ever created. 
  2.  In the mentioned special application we also called Deactivate(true) hoping that the license will be removed, but unfortunately it threw InvalidProductKeyException, the same exception that is thrown when Activate is called.

I'm not sure what originally was provided to CheckAndSavePKey and I do not know if it was the same key that is now returned by GetPKey, but we are stuck at this point.

Please advise what to do to clean up the problematic product key and allow the licensee to activate his actual product key.

Thank you,

Krzysztof

, edited
Answer

Use the latest version of TA, and call CheckAndSavePKey() with the key they want to use. This might mean altering the flow of your app (to make them more like our examples apps) such that customers actually have control over the product key if the product key is not activated.