This is quite well documented across the web, but nevertheless here is a set of notes that I find useful and keep referring back to:

To expose a COM Interface from a .NET Type Library so it can be called from(e.g.) VB6  or a classic ASP page we need to:

  1. Ensure assembly GUID is assigned, e.g:
  2. [assembly: Guid("dde7717b-2b75-4972-a4eb-b3d040c0a182")]
  3. Ensure COMVisible attribute is True:
  4. [assembly: ComVisible(true)]
  5. Check the project option “Register for COM interop”
  6. Put a GUID attribute on the class, e.g
  7. [GuidAttribute("4df74b15-d531-4217-af7e-56972e393904")]
  8. Ensure you have the namespace declaration:
  9. using System.Runtime.InteropServices;
  10. Register using Regasm.exe
  11. If using VB6 Application, reference .TLB

See the following for more details:

http://bytes.com/groups/net-c/269199-calling-c-component-classic-asp

Trackback

only 1 comment untill now

  1. [...] component would have to expose a COM Interface and be registered using REGASM, which would requrie manual intervension in the shipping [...]

Add your comment now