I had the same problem while using regasm.exe
.
Furthermore there are many things to mention when registering an assembly through regasm
.
For example you have to use the x64/x86 version of the regasm.exe, depending on your system.
- x64:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\regAsm.exe
- x86:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\regAsm.exe
After having so many problems, I switched to the ServerManager.exe
, which is part of the SharpShell Tools. It can be downloaded on the project page.
The usage is quite easy:
- Load the DLL with "Load server..."
- Click on "Install Server (xYZ)"
- And after that on "Register Server (xYZ)"
Restart the Windows Explorer and you should be done (not necessarily needed).
I fully agree with the point of the author of the mentioned tutorial:
The Server Manager Tool
The Server Manager Tool is my preferred approach for installing/uninstalling and registering/unregistering, at least during development, because it lets you install and register as separate steps. It will also let you specify whether you're installing/uninstalling etc in 32 bit or 64 bit mode.