Solved

GetObjectContext()

Posted on 2000-05-11
4
473 Views
Last Modified: 2012-05-04
I've looked everywhere and tried everything trying to get this working correctly.  I have a component in which I am trying to access the ASP Intrinsic objects (Response,Request,etc..) and I continue to get the 'Object variable or with block variable not set' error message.  I've read about every article and help site that I can find concerning this issue and nothing is helping.  

I even used a Microsoft example exactly from the text and it did not work.  That article is located at: http://support.microsoft.com/support/kb/articles/Q230/1/49.ASP
This example just returned the "..." at the end of the variable and there was no object error, but it still did not access the session or application variables correctly.

My component doesn't have a problem creating the object, it just has a problem once I try and set the ASP objects.

I also read that the GetObjectContext() method is not available in Class_Initialize() or Class_Terminate(), so I have that taken into account.  I've registered the component in Transaction Server and all, but still no luck.  

Is it required that GetObjectContext() have to use Transaction Server, or does it just have to have the reference to it?  If it is possible without MTS, I would prefer to keep it that way.

This is a big issue and I would greatly appreciate all ideas anyone has.  Thanks.
0
Comment
Question by:thorner
  • 2
4 Comments
 
LVL 20

Expert Comment

by:hes
Comment Utility
GetObjectContext Function
 
Obtains a reference to the ObjectContext that's associated with the current MTS object.
To use the GetObjectContext function, you must set a reference to Microsoft Transaction Server Type Library (mtxas.dll).
0
 

Author Comment

by:thorner
Comment Utility
I have all of the references setup correctly, both MTS and ASP are referenced.
0
 
LVL 1

Accepted Solution

by:
a201348 earned 200 total points
Comment Utility
I just did that yesterday and now again.
My understanding is that the GetObjectContext() in VB does not get the real objectcontext
You have to compile the project to a dll.
You can put that into MTS if you want. But it will screw your registry if you don't do it right afterwards when you go back to Vb and MTS explorer back and forth.
If you can get that ObjectContext into VB and do all the debugging in VB.
Let me know.
But otherwise, that should solve your problem.
0
 

Author Comment

by:thorner
Comment Utility
Answer accepted
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

763 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

11 Experts available now in Live!

Get 1:1 Help Now