"The license counter is damaged: 258" error message is thrown during the operation.
The issue may occur because the user under which you run your application doesn’t have certain permissions to the required branches of the Windows registry.
Under the current user (under which you run your application) please check that the 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.
HKEY_USERS\<USER_SID>\Software\Classes\CLSID\ branch does not exist, these permissions should be granted to the
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 user account 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).