.NET DLL running in ASP

From: Scott Manning (smanning_at_newsgroup.nospam)
Date: 10/14/04

  • Next message: Ray Costanzo [MVP]: "Re: Server.CreateObject("MSWC.Tools") fails in Windows 2003 server?"
    Date: Thu, 14 Oct 2004 09:44:11 -0400
    
    

    We have the following test VB.NET class file

    Public Class create_cls
        Public Function multiple(ByVal x As Int16, ByVal y As Int16) As
    Int16
            multiple = x * y
        End Function

    End Class

    That was compiled to a DLL. In trying to call the control from an ASP
    page we get an invalid progid or classid error message

    <%
    set otest = Server.CreateObject("createtest.create_cls")
    n = otest.multiple(4,5)
    response.write n
    %>

    I have read some other messages that indicate that we have to sign the
    dll and run the gacutil against the DLL and register the control using
    regasm.

    The question that I have, is it possible to call the VB.NET DLL
    directly without goinging through all of the steps to change the DLL?

    I am looking for a method that I can create the object from within ASP
    using something like createobject or some other means.

    I am just trying to avoid altering the DLL if possible.

    Thank you for any help

    Scott


  • Next message: Ray Costanzo [MVP]: "Re: Server.CreateObject("MSWC.Tools") fails in Windows 2003 server?"

    Relevant Pages

    • Re: Passing pointers to User Defined Types between VB EXE and DLL
      ... module to a public class module... ... I'm a relative New-be to DLL programming in VB. ... Public Sub GetBufferData ... ''* Begin code in the EXE ...
      (microsoft.public.vb.general.discussion)
    • Re: Memory issues when using interop
      ... short EXPORTED Spec_LoadWLArray(double *arrIn) ... public class DLLReference ... you either have to pass a pointer to memory allocated from a native ... that somehow this DLL is not getting dereferenced, ...
      (microsoft.public.dotnet.framework.interop)
    • Re: dll File
      ... Excel97 by adding an additional Public class to the dll. ... Can you give me a simple code example of all this where the Com-addin brigs ... VB/VBA are COM Add-Ins or Automation Add-Ins. ...
      (microsoft.public.excel.programming)
    • Re: Class with property named "Type"
      ... Public Function As String ... Dmitriy. ... The square brackets around an identifier feature is provided ... >> called it 'typf' and created the dll. ...
      (microsoft.public.vb.general.discussion)
    • Re: Calling a VB dll from vc++ 6.0
      ... As far as I can tell the dll seems to be fine but I get an access ... Public Function DecrementAs Integer ... Also, be aware that Long is a more appropriate VB type, equivalent to an 'int' in C. ... Public Const DLL_PROCESS_DETACH = 0 ...
      (comp.lang.basic.visual.misc)

    Loading