Click here to Skip to main content
12,448,059 members (72,197 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C#2.0 C#
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

Regards
Baji Smile | :)
Posted 8-Sep-10 0:49am
Comments
DavidKiryazi 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 8-Sep-10 8:31am
   
Hi David . I used Serial Port Class and it worked. Thanks
Rate this: bad
 
good
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 | :)
  Permalink  
Comments
Baji Jabbar 8-Sep-10 8:30am
   
Ya Serial Port Class helped. Thanks Pallini :)
Rate this: bad
 
good
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
  Permalink  
Comments
maB_J 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160811.3 | Last Updated 29 Apr 2011
Copyright © CodeProject, 1999-2016
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