I have some COM objects in my C# project. When I publish the project and run the pro开发者_Go百科gram 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?
- regsvr32 "path\FileName.dll" for any non .Net com dlls.
- regasm for .Net com dlls.
In your setup project, use vsdrfCOMSelfReg
for Register
property of the .dll file in question.
More here.
精彩评论