Results 1 to 5 of 5

Thread: Dll/asp

  1. #1

    Thread Starter
    Hyperactive Member johnweidauer's Avatar
    Join Date
    Sep 2002
    Location
    SLC, UT
    Posts
    314

    Dll/asp

    I create in VB6SP5 a DLL containing 1 Module (Mod1), 2 Class modules (Cmessage and ParseNonHTMLMsg, and I add a Standard EXE project to the DLL Project for testing.

    The Standard EXE executes just like i want it to:
    (cls ParseNonHTMLMsg is a Public Function returns as String)

    VB Code:
    1. dim x as New NonHTMLEmailPrsr.ParseNonHTMLMsg
    2. dim s as string
    3.  
    4. s = x.ParseEmailMsg("filepath")
    5.  
    6. msgbox s

    however, i create the dll, register on the webserver and execute it from an ASP page:

    VB Code:
    1. DIM x
    2. dim str
    3.  
    4. set x = Server.CreateObject("NonHTMLEmailPrsr.ParseNonHTMLMsg")
    5.  
    6. str = x.ParseEmailMsg("filepath")

    it returns an error:

    Technical Information (for support personnel)

    Error Type:
    Microsoft VBScript runtime (0x800A01B6)
    Object doesn't support this property or method: 'ParseEmailMsg'
    /test_readmail.asp, line 8

    Line 8:str = x.ParseEmailMsg("filepath")

    can anyone provide some input for me??

    Thank you.
    To the world you may just be one person, but to this one person, you just might be the world.

  2. #2

    Thread Starter
    Hyperactive Member johnweidauer's Avatar
    Join Date
    Sep 2002
    Location
    SLC, UT
    Posts
    314

    Re: Dll/asp

    ummm...*bump*
    To the world you may just be one person, but to this one person, you just might be the world.

  3. #3
    Fanatic Member
    Join Date
    Sep 2000
    Posts
    770

    Re: Dll/asp

    Look at the properties for that class, make sure you have Instancing - MultiUse selected.

    I assume since the object was created sucessfully, that you have the dll registered.

    Make sure that your class name and project name match up exactly with what your trying to define in Server.CreateObject

  4. #4

    Thread Starter
    Hyperactive Member johnweidauer's Avatar
    Join Date
    Sep 2002
    Location
    SLC, UT
    Posts
    314

    Re: Dll/asp

    i have confirmed MultiUse Instancing, DLL is registered and Visual Web Developer upon typing "x." then drops down "ParseEmailMsg" so i know it recognizes it. hmmm, this one has me confused.
    To the world you may just be one person, but to this one person, you just might be the world.

  5. #5

    Thread Starter
    Hyperactive Member johnweidauer's Avatar
    Join Date
    Sep 2002
    Location
    SLC, UT
    Posts
    314

    Question Re: Dll/asp

    attached is my project, any help is appreciated. like i mentioned, testing as described below works just fine, its the asp page that errors out like i mentioned above.

    for testing: add standard exe project, set new project as startup, add a reference to NDME_MIMEPrsr2, add a button to the form and put this code behind the button onlick event:

    VB Code:
    1. Dim x As New NDME_MIMEPrsr2.ParseNonHTMLMsg
    2. Dim s As String
    3.  
    4. s = x.ParseEmailMsg("[some .eml file here]")
    5.  
    6. MsgBox s
    7.  
    8. Set x = Nothing

    obviously for asp testing you will have to create the dll and register it on the server. asp code as above
    Attached Files Attached Files
    Last edited by johnweidauer; Jul 28th, 2005 at 12:16 AM. Reason: additional info
    To the world you may just be one person, but to this one person, you just might be the world.

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