Created On:  04 March 2010

Problem:

Having successfully installed Studio Enterprise Edition 6.0 on a machine running Windows 7 and then having successfully inserted the authorization code for a time-limited license, the error “Error[18]: No license code is available for feature UNKNOWN on host Unknown” is returned when attempting to start up NetExpress within the Studio Enterprise product.

Resolution:

The problem lies in the lservsc.stn file which can be found in the default path C:\\Program Data\\Micro Focus . Please note that sometimes this path is hidden so you may have to “unhide” it via the control panel settings.

The file contains the license string that is issued to the customer’s machine from the Micro Focus license server machine which enables the product to be licensed and, thus, function.

The license string should appear as eight separate lines with carriage returns at the end of every line.  Each license string starts with a license version number (currently 10) followed by the feature name.  When you initially install the product you are given a 30-day trial license.  In the lservsc.stn this 30-day trial license is represented by eight lines beginning with “10 COBOLManagedCompiler 6.0 LONG TRIAL 30 STANDALONE .....”  Having then inserted your authorization code for an extended time-limited period, there should appear a further eight lines beginning with 10 COBOLNativeCompiler 6.0 LONG TRIAL xxx STANDALONE ...” where xxx represents the number of days of the extended period.

However, if you open this file you will notice that one of these lines is exceptionally long because a carriage return is missing resulting in two license version numbers appearing on the same line.  By examining the format of the file you will easily note that this line needs a carriage return inserted in the middle, thus returning “10 COMPONENT 6.0 LONG TRIAL xxx STANDALONE ... “ to a new line and completing the correct format.

Before editing the file it is recommended that you make a back up of the original file in case your SupportLine representative needs to see the state of the original file.  Keep the back up file in a different location though so that it is not picked up by the license manager. Then edit the file by removing the initial eight lines pertaining to the 30-day trial license, insert the carriage return in the correct place for the exteneded time-limited license and save the file to the default directory.  This should solve the problem.
Incident #2428917, 2433344, 2436918, 2438088