« Previous Next »

Thread: ISAPI DLL call .Net DLL

Last post 04-28-2009 10:29 PM by lextm. 3 replies.

Average Rating Rate It (5)

RSS

Page 1 of 1 (4 items)

Sort Posts:

  • 04-27-2009, 10:17 PM

    • brusoft
    • Not Ranked
    • Joined on 04-28-2009, 2:04 AM
    • Posts 2

    ISAPI DLL call .Net DLL

    I'm getting an OLE System error that file can't be found when my ISAPI DLL trys to call a .NET DLL.  This is occurring on a new installation running Server 2008 and IIS 7.  The same ISAPI DLL and .NET DLL are communicating fine within the other installation running Server 2003 and IIS 6.  I first had difficulty with the 2003/IIS6 installaction until I registrered the .Net DLL with regasm.exe and installed the .NET DLL in the c:\windows\assembly (GAC) folder. I've done the same with the new installation, but get the above error.  Any ideas what I'm missing?

  • 04-28-2009, 1:48 AM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,417

    Re: ISAPI DLL call .Net DLL

    Do you use the following command line to register this .NET assembly?

    regasm netdcom.dll /codebase /tlb 

    where netdcom.dll is the file name.

    If you already did that, can you write a VB script to call this COM locally?

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • 04-28-2009, 9:02 AM In reply to

    • brusoft
    • Not Ranked
    • Joined on 04-28-2009, 2:04 AM
    • Posts 2

    Re: ISAPI DLL call .Net DLL

    I did the above without the /codebase /tlb and then did a drag-n-drop to the windows\assembly (GAC).  I don't have a VB Script, but I do have another stand alone application that has no problem calling the .NET DLL.
  • 04-28-2009, 10:29 PM In reply to

    • lextm
    • Top 10 Contributor
    • Joined on 10-22-2008, 4:18 AM
    • Shanghai, PRC
    • Posts 1,417

    Re: ISAPI DLL call .Net DLL

    How did this standalone application calls this .NET assembly? Also via COM interface?

    If you add this .NET assembly as reference of this app, or the app uses reflection to load it, then the VB script test is still a must to narrow down the problem.

    Lex Li
    Support Engineer at Microsoft
    ---------------------------
    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (4 items)
Microsoft Communities