Quantcast
Channel: .NET Framework Class Libraries forum
Viewing all articles
Browse latest Browse all 8156

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

$
0
0

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.

Thanks,

VidyaSB


Viewing all articles
Browse latest Browse all 8156

Trending Articles