COM+ MTS VB windows 2000 (Windows 2000/Com+)

Hi,

We are using ObjectContext with Com+ service type library in VB. we get Error 91 object "object variable or with block variable not set" though the same code worked in NT(after registry was modified with "RunwithoutContext"). We have sp5 for vb as well sp2 for win2k installed

Re: COM+ MTS VB windows 2000 (Windows 2000/Com+)

Re: COM+ MTS VB windows 2000 (Windows 2000/Com+)

Hi, thanx for replay
We used normal steps of registering Com+ component into Component services
ie.,
Invoke Component Services
Create a new Application
Create a new component
Add the Activex DLL Created in VB to it
and the component was accepted by COM+ without any errors.

Note comments are attached indicating the output

Now the Code which client uses is as below.
COM+ object type library was selected in References for VB.
'*******
Dim obj_MTS1
Dim obj1
Set obj_MTS1 = GetObjectContext() ' In Win2k this line returns nothing
Set obj1 = obj_MTS1.CreateInstance("MTSTest.MTSClass1") 'throws error 91 object variable not set
'********
any idea what could be wrong
(the same code works fine with MTS & NT after registry update)

Re: COM+ MTS VB windows 2000 (Windows 2000/Com+)

Please review these search results from MS for GetObjectContext. There are multiple references to how you have to use a different approach under Windows 2000. I didn't go further because I have no knowledge of MTS.