you can also see this article http://support.esri.com/fr/knowledgebase/techarticles/detail/40735

In arcgis server you register with esriregasm 64bit tool with:
"C:\Program Files\Common Files\ArcGIS\bin\esriregasm" "c:\yourpath\mydll" /p:Server