install COM Object on another pc

Aug 28, 2007 6 Replies

Hi, I have created a com object (session object) in VB 2005, and it works great on my development machine. I can't seem to get it to work on another machine though. Has anyone else run into this? Am I missing something?



Thanks,



Don


Don, For COM objects you need to register them on each machine they are to be used on. On your development machine Visual Studio does this for you. Please explore the regasm.exe utility included with .Net 2.0.

Ryan,

On the dev machine I run:

regasm /tlb:ClassLibrary1.tlb ClassLibrary1.dll

to register the file.

Is it the same syntax on another machine?

Thanks, D> Don,

Yes, but you don't need the /tlb flag unless you have specially configured your .tlb file. regasm will infer what it needs to do through reflection of your exe.

Ryan,

I type:

regasm ClassLibrary1.dll

and I get the message that it was registerd sucessfully, however I still get the error.

What am I missing here?

D> Hi, I have created a com object (session object) in VB 2005, and it works

Ryan,

Turns out you also need to add it to the assembly cache using the .net configuration utility in the control panel.

Got it working now.

Thanks!!!

"D> Hi, I have created a com object (session object) in VB 2005, and it works

That's odd, we program in .Net and we have never had to add anything to the GAC.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required