Click here to Skip to main content
15,905,229 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

i have a vb6.0 OCX control and i wants to add in my dot net project and also wants to deploy it with dot net setup.

I have added ocx in tool box in IDE. its created two dlls in obj folder of my project. Use this both dlls and this working fine on development system.
but when i install it at client's machine and run application its gives a error "Class not registered".

Please help.

What I have tried:

i have creates a setup project and added all required dlls with exe and also added both ocx dlls (Interop.****Lib and AxInterop.****Lib) and set Register property =vsdraCOM
for Interop.****Lib dll.
and set target directory as application directory.
thats it.

Please help.. where and what I missing.
Updated 9-Jan-18 23:18pm

1 solution

OCX files should be registered (the COMID written into the registry)...
Normally it would be something like regsvr32 "your.ocx", but how actually you can utilize it is depends on how do you create your installer...
Share this answer
KHEMRAJ_UDR 10-Jan-18 6:32am    
i have create installer using "visual studio installer" and also set property Register=vsdraCOM in setup. but it is not be register at client machine.
Kornfeld Eliyahu Peter 10-Jan-18 6:45am    
Does the ocx listed under included files?
KHEMRAJ_UDR 10-Jan-18 7:06am    
i have tried both ways.. with ocx and without ocx in installer
Kornfeld Eliyahu Peter 10-Jan-18 7:44am    
OCX MUST be included. It should sit under the system folder...
KHEMRAJ_UDR 10-Jan-18 8:18am    
yes.. this thing i have not tried.. i will try this it may be work.

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

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900