I created a dll and tbl files from C# Visual Studio 2008.
I Regasm AssemblyName.dll /tlb: FileName.tlb /codebase
to register it to my local server.
Use the tlb reference. Compile it, it runs fine in my development PC.
After I make an exe, run it on other PC, error message "ActiveX fail to create object" is prompted.
Do I need to Regasm for every machine I deploy to?
What if there is no Visual Studio in deployment PC? No Regasm can be found.
Yes, you need to do that as a part of the install. But that's only part of it. You also have to markup all the public methods with attributes to make sure that the recompile does not accidentally compile the methods in the wrong order. See this