Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C#2.0
I am getting an error "Creating an instance of the COM component with CLSID {648A5600-2C6E-101B-82B6-000000000014} from the IClassFactory failed due to the following error: 80040112"
I am using a MSCommLib.MSComm ( Microsoft Communication Control 6.0) controller dynamically to connect with the Com Port. The application works fine in the developer server. But in the client machine its giving an error. While goolgling I found that this error is raised because dynamic Run time Licensing for Microsoft Communication Control 6.0 is no. and I tested it and found true. Please help me to sort this out.
NB: This is a C# application
Baji Smile | :)
Posted 8-Sep-10 1:49am
DavidKiryazi at 8-Sep-10 7:37am
Baji, can I ask why you are not using the native SerialPort class to connect to the comm port that is provided by the .NET2.0 framework?
Baji Jabbar at 8-Sep-10 8:31am
Hi David . I used Serial Port Class and it worked. Thanks
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

The best option would be, as already suggested, using the Serial Port[^] class provided by the .NET Framework.
If you're curious about providing runtime license info for COM controls, then you may have a look at my article "LicenceProvider"[^] (Note: is C++ code), it uses just the MSComm in the code sample.
Smile | :)
Baji Jabbar at 8-Sep-10 8:30am
Ya Serial Port Class helped. Thanks Pallini :)
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Hey guys!
I had the problem too
I was testing my setup application into a virtual windows xp (I used VMWare and installed a new windows inside)
when I was trying to start listening on tcp server it throws this error.
I tried in an other system (not virtual) and it ran perfectly!
good luck
maB_J at 29-Apr-11 2:36am
Is this a solution ?? The solution is found already

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Peter Leow 255
1 Mika Wendelius 240
2 CHill60 195
3 TheRealSteveJudge 180
4 Zoltán Zörgő 178
0 Sergey Alexandrovich Kryukov 8,658
1 OriginalGriff 6,591
2 Peter Leow 3,982
3 Zoltán Zörgő 3,604
4 Richard MacCutchan 2,510

Advertise | Privacy | Mobile
Web04 | 2.8.150123.1 | Last Updated 29 Apr 2011
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100