Go to the properties for the project, go to the Compile tab, and check Register for COM Interop.