Vb.Net COM not registering...

D

Daniel Bass

I've created a basic COM object using the COM class template.

I'm trying to access the object via IDispatch... the easiest way to do this
is probably through CreateObject in Vbscript.

On my machine, everything compiles and registers, and I created a little
script to create and instance of my VB .Net COM object, and access a few
methods on it... No problem, it works like a treat.

If I then transfer this dll to any another machine, and use RegAsm to
register the DLL, then try to access it via my same script, it fails,
claiming the ActiveX control can't create my object...

Any ideas what I need to do to get this working, and why it works on the
development machine, but no others?

I've asked about in other relevant newsgroups to no avail.

Thanks in anticipation.
Dan.
 
M

Mike Bulava

Com Interop files are created as Tlb files you will need to use Regtlb to
register these or any installer can register these files.
 
D

Daniel Bass

when i used regasm, i had the /tlb:<tlbfile> switch, which supposedly does
this?

I can't find an application called regtlb in the .net framework.

Thanks.
Dan.

Com Interop files are created as Tlb files you will need to use Regtlb to
register these or any installer can register these files.
 
D

Daniel Bass

got it... you need to include the /codebase option when using RegAsm.

thanks.
Dan.

when i used regasm, i had the /tlb:<tlbfile> switch, which supposedly does
this?

I can't find an application called regtlb in the .net framework.

Thanks.
Dan.

Com Interop files are created as Tlb files you will need to use Regtlb to
register these or any installer can register these files.
 

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