When running a custom app that utilizes the LDK module for obtaining a license, sometimes the app returns the following error when running on a machine:

LDK_ERR_REGISTRY_ACCESS

This appears to suggest that it couldn't access the registry. So, what are ways to ensure that it will be able to gain access for writing the license key?


There are a few ways you can resolve this issue:

  1. Try right-clicking on your custom LDK application and choosing "Run as Administrator".
  2. Try logging in as a user with elevated or admin rights for running the app.
  3. The LDK writes the license to the following areas in the registry. You can check the registry permissions to see if the user account has access to these paths (right-click on the registry key and select Permissions):

HKEY_LOCAL_MACHINE\Software\Accusoft\Licensing
HKEY_LOCAL_MACHINE\Software\Wow6432Node\Accusoft\Licensing