title: ASP.NET using VB6 code
body: <p>I want to use some code from a VB6 application in an ASP.NET (written in VB.NET rather than C#.NET) application.</p>
  
  <p>My approach is to copy the DLL file into the BIN folder of the ASP.NET application and add a reference to the COM component (in the BIN folder) in .NET.</p>
  
  <p>Everything seems to work perfectly.  Is there anything that I should be aware of with this approach? The ASP.NET application is deployed to a few workstations on the domain using XCOPY.  I don't believe that I have to register the DLL on the PC's as it is contained in the BIN folder?</p>
  
  <p>UPDATE</p>
  
  <p>I have read the information in the link provided by n8wrl.  The following links talks about adding the ASPCOMPAT tag: <a href="http://msdn.microsoft.com/en-us/library/zwk9h2kb.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/zwk9h2kb.aspx</a>.  I assume that you only have to add the tag to pages that reference the COM component i.e. not all pages in the ASP.NET application? Is there anything else that is required to ensure the code in thread safe etc? I realise that .NET uses managed memory and COM uses unmanaged memory and also .NET uses MTA'S whilst COM uses STA's.</p>