« Previous Next »

Answered Thread: Calling a managed .net dll from asp

Last post 10-12-2009 4:28 AM by WenJun Zhang - MSFT. 1 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (2 items)

Sort Posts:

  • 10-07-2009, 1:08 PM

    Calling a managed .net dll from asp

    Hello,

    I've an upload.asp and it is creating an object from a managed .net dll. Deployment of this dll to my test environment is successful and my upload.asp is working fine.  I used regasm.exe and tlb file of dll is created by regasm.exe. I didn't restart the IIS after this operation...

    When I try to deploy this dll to an another server with same methods; I'm getting 424 vbs error (Object required) from my asp page.  Tlb file of dll is created successfully too.

    is it about IIS's version ? Server's .net framework version ? Does IIS need to restart?  Do u have any idea ?

    Thanks

     

     

     

  • 10-12-2009, 4:28 AM In reply to

    Answered Re: Calling a managed .net dll from asp

    To use a .net assembly in classic ASP, you need to register it through COM Interop.

    Please refer to:

    Walkthrough: Creating COM Objects with Visual Basic .NET
    http://msdn.microsoft.com/en-us/library/x66s8zcd(VS.71).aspx

    According to the error you got, it seems the interop assembly still fails to be correctly registered on the destination server. If you meet trouble to use regasm on it, creating a setup project to deploy the dll is a more recommended approach which has the supported option to register assembly in COM interop.

    WenJun Zhang - MSFT
    Sincerely
    Microsoft Online Community Support

    “Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ”
Page 1 of 1 (2 items)
Microsoft Communities