Class is not licensed for use while creating Interop.MSCommLib.MSComClass object RRS feed

  • Question

  • Hi,

    I am working on .net 2.0 framework, c#, vs2008.I have used MSCommLib COM component to support serial communication.

    I have refernced Interop.MSCommlib.dll in my project and trying to create MSCommClass object using new operator i.e

    mscomm = new Interop.MSCommLib.MSComClass().

    In my development environment system, everything works fine, but same code in test machines gives me an error pop-up specifying "Class is not licensed for use"

    Creating an instance of the COM component with CLSID {648A5600-2C6E-101B-82B6-000000000014} from the IClassFactory failed due to the following error: 80040112 Class is not licensed for use.

    Tried manually registering mscomm.ocx and even importing vbcontrols.reg file, but no help,still issue persist with another error pop-up.

    Retrieving  the COM class factory for component with CLSID {648A5600-2C6E-101B-82B6-000000000014} failed due to the following error: 80040112 Class is not licensed to use(Exception from HRESULT:0x80040112”

    This is observed in windows 8&10 machines.

    Please someone help me on this.



    Sunday, August 16, 2015 10:20 AM


All replies