Net Help adding a COM object to a VB.Net Project

jbravo223

New member
Joined
Jul 28, 2006
Messages
2
Programming Experience
Beginner
ETA: Title should say need help....

Hi Folks,

I inherited a VB.net project that references a COM object but the reference comes up as not being found. I tried to re-add the DLL and get an error message saying that the dll is not a valid com object or not accessible. What am I doing wrong?

Thanks
John
 

TechGnome

Well-known member
Joined
May 23, 2005
Messages
896
Programming Experience
10+
In addition to the actualy DDL (which needs to be properly registered on your machine) also, see if there is an interop file in the project files somewhere. it should be along the lines of dll-name.dll.interop.

-tg
 

TechGnome

Well-known member
Joined
May 23, 2005
Messages
896
Programming Experience
10+
Start -> Run ... type "Regsvr32 " (incl the space) then drag (from file explorer, not from the VS IDE) the dll file and drop it onto the Run dialog after the regsv32.... that should add the full path and file name to the command. PRess Enter.... you should get a message box that indicates success/failure of the registration.

-tg
 
Top Bottom