Error eith InteropService.COMException
-
I wrote a service that use VB6 MSCOMM32.OCX for serial communication. I works perfectly on my development machine which has both .NET studio and VB6 installed. But when I bring it over to a computer w/o VB6 installed it doesn't work (i registered MSCOMM32.OCX). I got the following error: System.InteropService.COMException from the service. The odd thing is that the service monitor tool which is a winform application, which also use MSCOMM32.OCX but has a wrapper class that generated by winform, works perfectly as well. the Error when I debug it says: Class is not licensed to use Please help. Thanks
-
I wrote a service that use VB6 MSCOMM32.OCX for serial communication. I works perfectly on my development machine which has both .NET studio and VB6 installed. But when I bring it over to a computer w/o VB6 installed it doesn't work (i registered MSCOMM32.OCX). I got the following error: System.InteropService.COMException from the service. The odd thing is that the service monitor tool which is a winform application, which also use MSCOMM32.OCX but has a wrapper class that generated by winform, works perfectly as well. the Error when I debug it says: Class is not licensed to use Please help. Thanks
What was the COM exception?
-
What was the COM exception?
The exception was thrown was System.InteropService.COMException, the error message was : class is not licensed for use. Other than that, it doesn't have any other error. Please note that it works fine on the machine that has both .NET Studio and VB6 installed...but not others. Jimmy
-
The exception was thrown was System.InteropService.COMException, the error message was : class is not licensed for use. Other than that, it doesn't have any other error. Please note that it works fine on the machine that has both .NET Studio and VB6 installed...but not others. Jimmy
Is it the lciense file for the OCX. I think the corresponding OCA has something to do with this but what do I know...
-
Is it the lciense file for the OCX. I think the corresponding OCA has something to do with this but what do I know...
I copied the OCA file with it as well...but nothing works. as I mention, this is odd since the winform version works fine, but the service one doesn't.
-
I wrote a service that use VB6 MSCOMM32.OCX for serial communication. I works perfectly on my development machine which has both .NET studio and VB6 installed. But when I bring it over to a computer w/o VB6 installed it doesn't work (i registered MSCOMM32.OCX). I got the following error: System.InteropService.COMException from the service. The odd thing is that the service monitor tool which is a winform application, which also use MSCOMM32.OCX but has a wrapper class that generated by winform, works perfectly as well. the Error when I debug it says: Class is not licensed to use Please help. Thanks
We are having the same problem and have talked with MS. It seems like MSCOMM32.OCX requires some kind of certificate before it can be used, and that certificate is installed when you install VB6. Our way around it is this: http://msdn.microsoft.com/msdnmag/issues/02/10/NETSerialComm/ Hope this helps, Mads