I have a 32 bit DLL in C# that I'm trying to register using regsvcs command (the one from .NET framework for 32 bit) on a 64 bit machine. The error that I get is:
FATAL: Could not find component we just installed
The TBL file is created, no registry entries are added and the component does not appear in Component Services.
If I try to register it using regsvcs command from .NET framework for 64 bit, I get that the DLL is in invalid format, error that make sense.
Is it possible to register a 32 bit component on a 64 bit machine?
If I compile the DLL as 64 bit and I register using regsvcs command for 64 bit, it works fine.
The error occurred because of repeatedly register and unregister the DLL as 64 bit. Some classes remained uncompleted unregistered from registry and interfered with the 32 bit registration.
Searching and deleting all nodes that contained references to DLL classes from HKEY_CLASSES_ROOT
solves the problem.