How to resolve "COM Error: Class not licensed for use" with Statistica Server (WebStatistica) installs?

How to resolve "COM Error: Class not licensed for use" with Statistica Server (WebStatistica) installs?

book

Article ID: KB0077324

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.1

Description

For 13.1, the following error may occur:

COM Error:  Class is not licensed for use.  'web.lic' has to contain either WebSTATISTICA or Live Score server feature, which should be properly signed and have a valid HOSTID.


Cause:  One known cause is the MAC address changing when using NIC Teaming ( https://docs.microsoft.com/en-us/windows-server/networking/technologies/nic-teaming/nic-teaming-mac-address-use-and-management).  

On Windows Server 2012, the Service Manager may show information about NIC teaming:

NIC Teaming disabled

Another way to determine if NIC Teaming is in use is to check to see if any of the the network adapters are using Microsoft Network Adapter Multiplexor Driver:

Microsoft network Adapter Multiplexor Adapter



 

Issue/Introduction

This article discusses the COM error, the typical cause, and how to resolved the error.

Environment

Windows operating systems only. Statistica Server (WebStatistica) and Live Score only.

Resolution

SOLUTION ONE

If using NIC Teaming, as described above, then setting the MAC address manually to remain static will resolved the issue.  

1.  Start-->Control Panel-->Network and Internet-->Network Connections and click on "Change adapter settings":
How to get to network adapters

2.  Right-click either on the adapter which represents "primary team interface" (see  https://docs.microsoft.com/en-us/windows-server/networking/technologies/nic-teaming/nic-teaming-mac-address-use-and-management

3.  Select "Configure":

Configure Network Adapter

4. Click the "Advanced" tab, select the "MAC Address" property, and enter the MAC address to use:

Configure with STATIC MAC address

5.  Click the "OK" button to save the setting.

Now when the server is rebooted, the MAC address will not change and the WebStatistica service will start.  

SOLUTION TWO

If NIC Teaming is not in use, then there must be another HOSTID mismatch between the web.lic and the MAC address of the server machine.  In cases when the issue is experienced during a reboot (where WebStatistica/Live Score is running as expected before the reboot but failing after reboot), collect and compare the MAC address(es) before and after the reboot.  Open a command prompt and type the following command:
  •      IPCONFIG /ALL 
The output will show several network adapters and their physical addresses, like below:
Physical Address

Compare the physical address (which is the MAC address) with the MAC address in the web.lic.  If they do not match, likely the best solution is to assign a static MAC address to one network card, similar to solution #1 above.  

 

Additional Information

https://docs.microsoft.com/en-us/windows-server/networking/technologies/nic-teaming/nic-teaming-mac-address-use-and-management
https://www.vembu.com/blog/configure-nic-teaming-hyper-v/
https://www.intel.com/content/www/us/en/support/articles/000022706/network-and-i-o/ethernet-products.html