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
Solved

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

Posted on 2009-07-04
4
529 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
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…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

860 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