Why GetAvailableLicenses() method returns an empty result while there is a Runtime license shown in the License Manager utility?
This behavior is specific for Developer installation and can be fixed by renaming/removing the Protection.Developer.dll file.
GetAvailableLicenses() method provides access to the collection of available licenses for a given CustomerProject ID. The subset of all licenses that is returned depends on the type of the installation:
- For Developer installation (Protection.Developer.dll file is present in the Bin or Bin64 folder of the installation folder) the method returns only Developer licenses and those Runtime licenses for which debugging is allowed. By default debugging is not allowed for Runtime licenses, but it can be turned on by request.
- For Runtime installation (Protection.dll file is present in the Bin or Bin64 folder of the installation folder) the method returns all activated licenses that match the CustomerProject ID.
Please sign in to leave a comment.