Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GetObjectContext has Count of zero under COM+

Status
Not open for further replies.

SteveFairbairn

Programmer
Mar 12, 2001
1
0
0
LI
Hi,

I have been trying to move some development code from a Windows NT server machine to a Windows 2000 machine, and find that my MTS DLLs are failing after the GetObjectContext. Whilst debugging this in VB, I find that the following code....
[tt]
Set oCtx = GetObjectContext
[/tt]
runs perfectly, with oCtx being set to an ObjectContext object, but as soon as I try to do the following....
[tt]
Set oResp = oCtx("Response")
Set oReq = oCtx("Request")
Set oApp = oCtx("Application")
Set oServ = oCtx("Server")
[/tt]
I hit ObjectRequired errors. A quick look at oCtx reveals that although it is a valid object, it's .Count is zero and so the object doesn't contain the above named entries. I can not work out why this is happening... Any help would be thoroughly appreciated.

Steve.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top