GetAvailableLicenses() returns 0 licenses

Question

Why GetAvailableLicenses() method returns an empty result while there is a Runtime license shown in the License Manager utility?

Answer

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:

  1. 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.
  2. 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.

 

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.