I tried this and had no success. It seems that (at least in 2011 versions), that when registering the file using regasm.exe, it is necessary to use the /codebase option. For example using the Windows command prompt (run as administrator) from the directory that the file is located):
I used .net framework 4.0 and compiled as "anycpu", selecting "register for COM interop". It warned that the name wasn't strong when I ran regasm so the .dll should be signed to avoid problems.