Make sure you compile your .NET application with the platform that matches the OCX controls you are using. The “Any CPU” platform means your application will look for 32 bit components when started as a 32 bit process and use 64 bit components when started as a 64 bit process. It cannot use both types of components at the same time as this can cause confusion. We recommend you use the x86/win32 or x64 platforms, same as whichever type of components you use.
Please note, that Visual Studio generates Interop (and sometimes AxInterop) dll files when you add reference to a com object and build your application. In this case it should generate the following dlls:
- Interop.BIPRNDRVLib.dll (and possibly AxInterop.BIPRNDRVLib.dll)
- Interop.BLACKICEDEVMODELib.dll (and possibly AxInterop.BLACKICEDEVMODELib.dll)
You can find these dlls in the bin folder of your project, beside the compiled executable. Do not forget to include these files in your install project. Install them to the same folder as your application.