COM Interop [2.0]

J

Jon

I have created a class library in v 2.0. I have set the COM Visible
attribute to True. Register for COM Interop is also checked in the IDE.

I need to use the DLL from a VB6 application, so on the dev machine with VB
6, I ran regasm /codebase. I was then able to add a reference to the DLL and
code against it. It runs fine and uses the .Net DLL perfectly.

Now, I am trying to get the compiled VB 6 application to work with the DLL
on another machine (a deployment test box). I ran regasm /codebase on the
dll. But, it doesn't work. It gives me the following error, "Class does not
support Automation or does not support expected interface". I never got this
error during development at all. I also tried regasm /tlb on the deployment
box, but that does not change anything.

What could be wrong?

Thanks!
 
J

Jon

FYI, I do know that the line in VB6 that creates the class is working. The
code does the following:

*Psuedo-code start*
Dim obj as New Attachment (attachment is the .Net 2 class)

Connect to database (I can see this happening in the log, so the Dim as New
above is not erroring)

obj.DoStuff (it errors later, when calling a property or function ,not sure
which)
*End*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top