Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

GetObjectContext()

Posted on 2000-05-11
4
Medium Priority
?
483 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
ID: 2801762
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
ID: 2801775
I have all of the references setup correctly, both MTS and ASP are referenced.
0
 
LVL 1

Accepted Solution

by:
a201348 earned 800 total points
ID: 2804826
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
ID: 2937558
Answer accepted
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Loops Section Overview
Suggested Courses

926 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