install COM Object on another pc

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

Reply to
DonInEP
Loading thread data ...

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.

Reply to
rsakry

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,

Reply to
DonInEP

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.

Reply to
rsakry

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

Reply to
DonInEP

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

Reply to
DonInEP

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

Reply to
rsakry

BeanSmart website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.