1. Make sure that RE was logged into at least once (selecting the appropriate database if multiple attached) as that process will create appropriate values for the live database in the registry.
  2. Ensure that the Windows user is a local Admin on that machine (to create the required registry keys initially).
  3. Clear the API connection prior to the login as illustrated in the article linked below.
How to connect to the RE database using the API?