So we have moved our code to Windows 10 (home) with VB Professional and compiled it successfully (after making sure all the missing reference files got copied to the SysWow64 folder and other locations, registered them etc).

There are a couple of interop libraries that the code uses. Trouble is when the code executes, it crashes with an Automation Error: System cannot find the specified file error when creating an instance of an interop object. Since the interops have been added to the references using the TLB files, I assume the system is unable to locate the DLL from the TLB file. How to fix this?

To give a background, I have tried all sorts of regasm variations (with / without codebase, with / without TLB and even building the interop project from VS.Net). The references point to the correct files in the correct locations. The code compiles just fine. It only fails at runtime.

Also the VB6 exe (the compiled version of the code) runs absolutely fine - so it is able to create instances of the Interop objects fine. But when the code is run from within VB6 development environment, the interop instance creation fails with automation error.

What gives?