Why Don't Serial Numbers Match My Code Masks?

Serial number masks are calculated by DeployLX when the license is edited in the DeployLX License Manager. As the license is modified and options changed, DeployLX will ask to recalculate the license masks. On occasion the serial numbers generated for the license will not match the masks. 

Cause

There are two common reasons that the masks do not match the serial numbers.

Auto-Recalculation is Turned Off

By default code masks are set to recalculate themselves to any changes in the serial number or code. However when the prompt is shown the user has the option to select Don't Show Me Again, and the automatic recalculation is turned off.

Mismatch in the Extendable Limits

Code written to generate serial numbers on demand or as part of an e-commerce system do not allow for extendable limits (such as time and use limits).

Solution

Recalculate Masks Manually

You can recalculate the masks by selecting Recalculate All Masks from the License tab on the upper ribbon.

To reset the automatic prompts
  • Select the Application Menu then, select DeployLX Options
  • Select Manager | General
  • Select Reset Message Box History

Use Code Appropriate for the Extendable Limits

If any license in the license file contains extendable limits that can be extended by code or serial number then serial numbers must reserve space for the initialization code even if the serial numbers do not initialize any limits.

Generating serial numbers for licenses without extendable limits
Private LicenseKey key = New LicenseKey("Path to LSK keys file")
key.DeployLxSerialNumbers = New String() { "Your DeployLX Serial Number." }
Dim serialNumber As String = key.MakeSerialNumber( _
  "PRO-", _
  1, _
  SerialNumberFlags.None, _
  -1, _
  0, _
  -1, _
  0)
LicenseKey key = new LicenseKey( "Path to LSK keys file" );
key.DeployLxSerialNumbers = new string[] { "Your DeployLX Serial Number." };
string serialNumber = key.MakeSerialNumber(
  "PRO-",
  1,
  SerialNumberFlags.None,
  -1,
  0,
  -1,
  0 );
Generating serial numbers for licenses with extendable limits
Private LicenseKey key = New LicenseKey("Path to LSK keys file")
key.DeployLxSerialNumbers = New String() { "Your DeployLX Serial Number." }
Dim serialNumber As String = key.MakeSerialNumber( _
  "PRO-", _
  1, _
  SerialNumberFlags.None, _
  ' Unused but reserved space for extendable limit.
  0, _
  0, _
  0, _
  0)
LicenseKey key = new LicenseKey( "Path to LSK keys file" );
key.DeployLxSerialNumbers = new string[] { "Your DeployLX Serial Number." };
string serialNumber = key.MakeSerialNumber(
  "PRO-",
  1,
  SerialNumberFlags.None,
  // Unused but reserved space for extendable limit.
  0,
  0,
  0,
  0 );
    Published : Mar 02, 2010
    Updated : Jan 04, 2012
    Views : 25545
    • licensing
    • deploylx
    • code

    Applies To

    Downloads

    Folder