Solved

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

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now