PDA

Click to See Complete Forum and Search --> : Open several objects to .dll in ASP


EricMoon
Nov 11th, 1999, 09:34 PM
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

ddoedens
Nov 12th, 1999, 01:21 AM
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
ddoedens@hotmail.com

baski
Jul 8th, 2003, 10:23 AM
Please check whether you include any include file....
There is a chance you have might have declared the same object