Results 1 to 3 of 3

Thread: Open several objects to .dll in ASP

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 1999
    Location
    Plymouth, MN, USA
    Posts
    3

    Post

    I have a report that I have generated that needs to extract data using several class modules in an ActiveX.dll. I have set up each class module for Multiuse and the dll as Apartment Threaded. I use the following code in my ASP page to call the DLL

    <%
    Dim objNCR
    Dim objVerify
    Set objNCR = server.createobject("ncr_ado.clsNCR")
    Set objVerify = Server.CreateObject("ncr_ado.clsVerification")

    etc...
    %>

    The problem is I get the following error:

    Error: '800a0e79'

    The operation requested by the application is not allowed if the object is open

    The error occurs when I hit the second Set obj = server.createobject

    Has anyone run into this? What am I overlooking?

    Thanks for any help!

    Eric

  2. #2
    New Member
    Join Date
    Nov 1999
    Location
    San Diego, CA
    Posts
    1

    Post

    Hello eric,

    You are trying to create the object twice!

    once the object is instanciated all you need to do is call the method you want to fire.

    Like this:

    <%
    Dim objNCR
    Dim objVerify
    Set objNCR = server.createobject"ncr_ado.clsNCR")
    objncr.clsVerification


    If this method returns some values then try this
    myvariable=objncr.clsVerification


    The object called ncr_ado has been instaniated with the first createobject then you need to call the methods


    email me with problems

    DOUG
    [email protected]



  3. #3
    New Member
    Join Date
    Jan 2003
    Posts
    4
    Please check whether you include any include file....
    There is a chance you have might have declared the same object

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