How to register COM objects when publishing on another machine

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

Class not registered

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

+3
source share
2 answers
  • regsvr32 "path \ FileName.dll" for any non .NET com dll.
  • regasm for .Net com dll.
+3
source

In your installation project, use the .dll file in question vsdrfCOMSelfRegfor the Registerproperty.

More details here .

0

Source: https://habr.com/ru/post/1770725/


All Articles