?
Solved

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

Posted on 2009-07-04
4
Medium Priority
?
545 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 2000 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

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
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…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

752 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