The “license counter is damaged: 258” message occurs because the user under which you run your application doesn’t have certain permissions to several branches of the Windows registry.
Under this user (under which you run your application) please check that this user has permissions to create keys and read/write their values in the following registry branches (if these branches exist):
If this user doesn’t have such permissions, these permissions should be granted.
If the HKEY_USERS\<USER_SID>\Software\Classes\CLSID\ branch does not exist, these permissions should be granted to the HKEY_USERS\<USER_SID>\Software\Classes\ branch.
There are several ways to define <USER_SID>. For example you can use one of the following:
- For standard SID please refer to the article https://support.microsoft.com/en-us/kb/243330.
- Type the following command in the Windows command prompt:
wmic useraccount get name,sid
- Look over HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\<USER_SID> entries and define the username by ProfileImagePath value.
Note. In case Engine is loaded from IIS, please make sure that an application pool under which Engine is loaded has Load User Profile = true setting (Advanced Settings of the application pool).