I have created a .NET COM component in Visual Studio 2008 with the COM Class. I' ve build it. Then made an app in VB6, referenced the tlb file (can't reference the dll file) and succesfully used the .NET object in VB6. No problems so far.
But when I use Package & Deployment Wizard to package the VB6 app it only packages the tlb file in the CAB file. When I run setup it copies the tlb file to C:\Windows\System32 and registers the tlb (I saw this in a log file which was located in the same directory as the EXE file). This exe doesn't work, failing with run-time error: "File or assembly name 'TestTemplate', or one of it's dependencies, was not found."
When i copy the dll file in the same directory as where the EXE is located it works. My question is why? And... will this give me problems if I need to install it at other computers?
I imagine it would, so I really need a solution.
Thank you very much in advance, my fellow developers, for discussing this with me.