LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Error -2147221164 Class not registered, work on one computer and doesn't on another

Solved!
Go to solution

Dear all,

 

There is an old labview software which used 32 bits dll file as activex server. It works good on the old computer with labview 2014 32 bits version. But on my new laptop, I installed both 2017 labview (32 bits and 64 bits) and 2014 labview (32 bits and 64 bits). They all can't open the activex server dll file with the error -2147221164, Class not registered.  This is the same error when I am trying to use the 64 bits version to run on the old computer. But on the new laptop, I tried all the versions, no one works. Any help or advice for this? 

Thanks.

Jason

0 Kudos
Message 1 of 6
(11,822 Views)

Generally this means that the ActiveX Server has not been registered; typically due to the lack of an installer or such for the server that would perform this action for you. Have you had a look at registering manually? http://digital.ni.com/public.nsf/allkb/4F811A9B23F1D46E862566F700615B7A

0 Kudos
Message 2 of 6
(11,814 Views)

Thanks for your reply.

Yes, I already checked this. And I tried to register the .dll file as a server. But it showed the error:"This file does not have a program associated with it for performing this action.Please install a program or, if one is already installed, create an association in the Default Programs control panel.". I tried both the old desktop and the new laptop, it both showed the error when I tried to register the dll file. Do you know why this happen? And when I use the activex, I am actually using the browse to the dll file location, in this way, do I still need to register it also?

Thanks.

Jason

0 Kudos
Message 3 of 6
(11,810 Views)
Solution
Accepted by topic author jason2017

Update. The problem is solved. tyk007 is right, the dll file needs registered. I registered it successfully with the way in the link below. Make sure using the administrator permission. And keep the dll file bits the same as the labview. For me, they are all 32bits. Then it should be OK.

http://digital.ni.com/public.nsf/allkb/9ACB175F6DE483AE86256B2200776B8B?OpenDocument

Jason

0 Kudos
Message 4 of 6
(11,755 Views)

I tried the solution.

 

Dialog pop out saying "DllRegisterServer in C:\Program Files(x86)\National Instruments\Shared\NI-Reports\nireports.dll. succeeded".

 

But I still got the same error after reboot the PC.

 

0 Kudos
Message 5 of 6
(7,516 Views)

Hello,

 

I did it but I have an error message when I tried to regsiter when I used this command line as suggested in the link:

CIML_1-1699278034780.png

 

 

CIML_0-1699277987692.png

 

Could you help me please?

Best regards

 

0 Kudos
Message 6 of 6
(3,848 Views)