Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
West-Wind MTS GetObjectContext returning .NULL.
Message
From
19/06/2000 20:57:36
 
 
To
16/06/2000 00:08:39
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00381075
Message ID:
00382029
Views:
27
>>I'm coding on an NT Server 4.0 SP6 and I'm trying to get an Object context, but I keep getting a .NULL. return.
>>
>>I've set up something in VB but it works a little differently so the code is not fully comparible.
>>
>>This is the code I'm using which is out of one of Strahl's White Papers.
>>
>>
>>THIS.oMTS = CREATEOBJECT("MTXAS.AppServer.1")
>>loContext = THIS.oMTS.GetObjectContext()
>>
>>IF !ISNULL( loConteext )
>>    loContext.SetComplete()
>>ENDIF
>>
>>
>
>Are you sure that the object you are running is really running in a package? Have you verified this by watching the spinning ball when the object is live? Your code is correct- it should work.

I believe it was a combination of trying to get the code to work in the command window, which if I understand correctly would never work and having errors in the code.

I added checks for NULL in other areas of the code as well and when the code finally worked, I recompiled the project as a DLL, which is how it was added in MTS and it worked fine.
Previous
Reply
Map
View

Click here to load this message in the networking platform