Link to home
Start Free TrialLog in
Avatar of JMichelson
JMichelsonFlag for Afghanistan

asked on

Classic ASP, VB 6.0, on IIS V6.0 XP 64 Bit - Getting error with GetObjectContext

Getting this error from the webpage:

ADODB.Recordset error '800a0e78'
Operation is not allowed when the object is closed.

When using GetObjectContext.  



This works fine on XP 32 bit, IIS 5.0.  I encountered this when moving the ASP application to a new development machine running XP Pro 64 bit, IIS 6.0.

Also, when I first opened the VB project in the IDE on my XP 64 bit dev machine, the "MTS 2.0 Admin Type Library" is listed as missing, yet I do see the "mtsadmin.tlb" file within c:\windows\system32\com\ folder.  
This is within my VB6 COM object registered with Component Services.
 
Dim objcObjCon As ObjectContext
Dim resResponse As Response
Set objcObjCon = GetObjectContext
Set roRequest = objcObjCon("Request")

Open in new window

Avatar of kevp75
kevp75
Flag of United States of America image

in VB6 IDE make sure MTS 2.0 Admin Type Library is checked off in project references
Avatar of JMichelson

ASKER

Thanks Kevp75.  Part of the problem is that "MTS 2.0 Admin Type Library" is unavailable through the project references. When I first loaded the VB project on the new machine, the compiler indicated this reference as "MISSING:".

ASKER CERTIFIED SOLUTION
Avatar of kevp75
kevp75
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks