Solved

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

Posted on 2009-07-04
4
531 Views
Last Modified: 2012-05-07
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

0
Comment
Question by:JMichelson
  • 2
  • 2
4 Comments
 
LVL 25

Expert Comment

by:kevp75
ID: 24781553
in VB6 IDE make sure MTS 2.0 Admin Type Library is checked off in project references
0
 
LVL 1

Author Comment

by:JMichelson
ID: 24781693
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:".

0
 
LVL 25

Accepted Solution

by:
kevp75 earned 500 total points
ID: 24998917
First thing, the solution is above.  Second, in order to be able to reference something, you need to make sure that something is first installed.  In this case, Microsoft Transaction Server needs to be installed on the machine you are developing this with.   See the links below...

http://msdn.microsoft.com/en-us/magazine/bb985046.aspx

http://technet.microsoft.com/en-us/library/cc750082.aspx

Please read them thoroughly, as it looks like there are quite a few steps you need to do to get this to work for you.
0
 
LVL 1

Author Closing Comment

by:JMichelson
ID: 31599805
thanks
0

Featured Post

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Today, still in the boom of Apple, PC's and products, nearly 50% of the computer users use Windows as graphical operating systems. If you are among those users who love windows, but are grappling to keep the system's hard drive optimized, then you s…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question