Using VB.NET VS 2005.
I have a .NET library that I need to be accessible for COM clients. I originally written a extra class within the library's source code (which was C#) and simply ticked the checkbox to register it for COM Interop. It works, but with late binding only.
Now, I want to implement early binding, and didn't want to expose all classes within the library, so I decided to write a separate assembly to act as a wrapper in VB.NET. This compile successfully, but I notice there isn't a .TLB file generated, even though I've ticked "Make assembly COM-visible". I used regasm to register the .TLB.
However, when the COM client try to use it, it will get an error saying "Automation Error: Cannot find the specified file."
I suspect that even though the library is correctly referenced within .NET, it's not being exposed properly to the COM clients and thus all they have is a wrapper that points to nothing. Mind you, the early binding works perfectly. It just won't run.
Any suggestions on how I can further diagnose and fix this problem?
I have a .NET library that I need to be accessible for COM clients. I originally written a extra class within the library's source code (which was C#) and simply ticked the checkbox to register it for COM Interop. It works, but with late binding only.
Now, I want to implement early binding, and didn't want to expose all classes within the library, so I decided to write a separate assembly to act as a wrapper in VB.NET. This compile successfully, but I notice there isn't a .TLB file generated, even though I've ticked "Make assembly COM-visible". I used regasm to register the .TLB.
However, when the COM client try to use it, it will get an error saying "Automation Error: Cannot find the specified file."
I suspect that even though the library is correctly referenced within .NET, it's not being exposed properly to the COM clients and thus all they have is a wrapper that points to nothing. Mind you, the early binding works perfectly. It just won't run.
Any suggestions on how I can further diagnose and fix this problem?