|
-
Nov 11th, 1999, 10:34 PM
#1
Thread Starter
New Member
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
-
Nov 12th, 1999, 02:21 AM
#2
New Member
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]
-
Jul 8th, 2003, 10:23 AM
#3
New Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|