Results 1 to 4 of 4

Thread: Expose .net dll to Component Services

  1. #1

    Thread Starter
    Addicted Member Tjoppie's Avatar
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    241

    Exclamation Expose .net dll to Component Services

    Hi all,

    I created a .net dll which I need to expose and register with com components which will need to make this dll available to use for the web and applications installed.

    Now to do this. I started out giving the dll a strong name.
    Then, selected "Register for Com Interop" in the library properties.
    Now this is where I'm stuck.

    I registered the dll in the component services, but only the "vs generated methods" are shown. So I guess I have to "Expose" my functions in my DLL in order to use them in Component Services. I want to be able to call it through the web with asp pages using server.createobject

    How will I do this?

    Thanks



    Thanks
    Last edited by Tjoppie; Nov 2nd, 2005 at 09:58 AM. Reason: Cause I wanted to say sum more

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: Expose .net dll to Component Services

    check out this article.. not sure if you will need ALL of this or not.. but it should give you all the info you need

    http://www.codeproject.com/dotnet/nettocom.asp

  3. #3

    Thread Starter
    Addicted Member Tjoppie's Avatar
    Join Date
    Aug 2005
    Location
    South Africa
    Posts
    241

    Re: Expose .net dll to Component Services

    Thanks... I'll have a look at it.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Expose .net dll to Component Services

    You could also just use regasm.exe to generate a TLB file for yourself, and then access the TLB in your project. I don't know if that'd work in asp 3.0 though!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width