Verify UnlockComponent Success w/ Purchased Unlock Code

To manually verify that a valid purchased unlock code was passed to UnlockComponent, examine the contents of the LastErrorText after calling UnlockComponent or UnlockBundle. The following message indicating a purchased unlock code was used should be present:

“Component successfully unlocked using purchased unlock code.”

See below:

ChilkatLog:
  UnlockBundle:
    DllDate: Jul 23 2016
    ChilkatVersion: 9.5.0.59
    UnlockPrefix: ABCXYZ.CBX0618
    Architecture: Little Endian; 64-bit
    Language: .NET 4.5 / x64
    VerboseLogging: 0
    component: Global
    unlockCode: ***
    regKeyUnlock:
      product: ChilkatBundle
      mm: 9
      yy: 2017
      Component successfully unlocked using purchased unlock code.
    --regKeyUnlock
    Success.
  --UnlockBundle
--ChilkatLog

UnlockComponent LastErrorText shows exact string passed to it.

If the string argument passed to UnlockComponent or UnlockBundle is NOT a purchased unlock code, then the LastErrorText will contain the exact string passed to it by your application.  In this case, the string “Hello World” was passed to UnlockBundle.

If UnlockComponent returns 0/false, check carefully the exact string being passed to it.  Make sure the exact purchased unlock code is passed to it.  (For example, double-check numeric zero’s vs. upper case letter O’s, or lowercase L’s vs. numeric 1’s.  It’s best to copy-and-paste the unlock code received from Chilkat rather than copying visually by typing.)

ChilkatLog:
  UnlockBundle:
    DllDate: Aug  8 2016
    ChilkatVersion: 9.5.0.59
    UnlockPrefix: NONE
    Architecture: Little Endian; 32-bit
    Language: Visual C++ 11.0 (32-bit)
    VerboseLogging: 0
    component: Global
    unlockCode: Hello World
    regKeyUnlock:
      product: ChilkatBundle
      hcCurDate: Mon, 08 Aug 2016 09:44:37 -0500
      hcExpire: 9/2015
      Trial has expired.
    --regKeyUnlock
    Failed.
  --UnlockBundle
--ChilkatLog

 

 

UnlockComponent or UnlockBundle returns False/0

If UnlockComponent or UnlockBundle fails, check the following.  (For more information about how UnlockComponent works, please read this:  How UnlockComponent works.

  1. You must pass the exact unlock code provided in your receipt email.  The unlock code is case sensitive
  2. If  you are confident that you are passing the correct unlock code to UnlockComponent (or UnlockBundle), but it returns a failed status, check the contents of the LastErrorText property immediately after calling UnlockComponent.  It will contain the exact string passed to it, and should provide details about why it failed.  Send the contents of the LastErrorText to support@chilkatsoft.com.

Where are trial versions?

The downloads at http://www.chilkatsoft.com/downloads.asp are the full-versions of the products, but may also be used in a fully-functional 30-day trial mode.   A Chilkat component/class is unlocked at runtime by calling the UnlockComponent method.  This method must be called once from within your application prior to using any Chilkat objects. It is not required to call UnlockComponent for each instance of a Chilkat object created.

An arbitrary string, such as “Hello World” may be passed to UnlockComponent.  The causes a fully-functional 30-day trial to automatically begin.  If a license is purchased, you will receive via email a permanent unlock code that should be inserted into the UnlockComponent method call.