title: Register .NET DLL for COM Interop in Visual Studio Setup and Deployment project
body: <p>I'm trying to register a dll for COM Interop and have the usual issue of it working on my dev machine but not our test server.  I'm attempting to do this in VS2008 using a Setup &amp; Deployment project. I'm then trying to consume the library from classic ASP. The target machine is windows 2003 with SP2, IIS6.</p>
  
  <p>Specifically I'm trying the method suggested by Hans here:</p>
  
  <p><a href="https://stackoverflow.com/questions/3087063/use-visual-studio-setup-project-to-automatically-register-and-gac-a-com-interop-d">Use Visual Studio Setup Project to automatically register and GAC a COM Interop DLL</a></p>
  
  <p>Where he says "Set the Register property of the project output reference to vsdrpCOM."</p>
  
  <p>As well as having this set I have the [assembly: ComVisible(true)] in the assemblyInfo of the project in question and the "Register for COM Interop" checkbox ticked. </p>
  
  <p>Finally I have also strongly signed it and added to the GAC in the Setup and Deployment project.</p>
  
  <p>The error I get in ASP is </p>
  
  <pre><code>Server object error 'ASP 0177 : 800401f3'
  
  Server.CreateObject Failed 
  </code></pre>
  
  <p>Oddly enough I can reference the registered library in Excel on the server in question and it works fine.  So it seems to be registered correctly.</p>
  
  <p>Anybody have suggestions on other things I may have missed?</p>
  
  <p>EDIT: Sorry more details added.</p>