install COM Object on another pc


D

DonInEP

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
 
Ad

Advertisements

R

Ryan @ RITE

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.

--
Thank you,

Ryan Sakry
Program Manager
Retail Information Technology Enterprises (RITE)
(e-mail address removed)
http://www.rite.us
320-230-2282 ext. 4002 (Office)
320-230-1796 (Fax)
 
D

DonInEP

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,
Don
 
R

Ryan @ RITE

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.

--
Thank you,

Ryan Sakry
Program Manager
Retail Information Technology Enterprises (RITE)
(e-mail address removed)
http://www.rite.us
320-230-2282 ext. 4002 (Office)
320-230-1796 (Fax)
 
D

DonInEP

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?

Don
 
D

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!!!
 
Ad

Advertisements

R

Ryan @ RITE

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

--
Thank you,

Ryan Sakry
Program Manager
Retail Information Technology Enterprises (RITE)
(e-mail address removed)
http://www.rite.us
320-230-2282 ext. 4002 (Office)
320-230-1796 (Fax)
 

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

Similar Threads


Top