tags:

views:

34

answers:

2

I have some COM objects in my C# project. When I publish the project and run the program on another machine, I get this error

Class not registered

I think the COM objects automatically register on my machine as part of the build process. How can I register my COM objects on another machine?

+1  A: 
  • regsvr32 "path\FileName.dll" for any non .Net com dlls.
  • regasm for .Net com dlls.
anivas
A: 

In your setup project, use vsdrfCOMSelfReg for Register property of the .dll file in question.

More here.

Daniel Mošmondor