Results 1 to 5 of 5

Thread: error 429 While trying to access COM+ component Through Win98 client

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2002
    Posts
    1

    Question error 429 While trying to access COM+ component Through Win98 client

    I am trying to run a vb exe on win98 client which is accessing a com+ components through MSI. The com+ component is installed on win2000 server and the msi is prepared by exporting the Application Proxy. I have also installed DCOM98 and MDAC 2.7 on the win98 machine. While accessing the exe it throws the error 429 "ActiveX cannot create Object". The error is thrown while the exe is trying to access the ObjectContext used in the dll.


    The following is the sample code used by the ActiveX dll.
    /**********************************************************/
    Public Function General_Test_Method() As String

    On Error GoTo errhandler

    Dim ctxObject As ObjectContext
    Set ctxObject = GetObjectContext()

    General_Test_Method = "String from General_Test_Method"

    ctxObject.SetComplete
    Exit Function

    errhandler:
    ctxObject.SetAbort
    Err.Raise vbObjectError, "MTSTest.clsTest.General_Test_Method", _
    Err.Description
    Exit Function

    End Function

    /**********************************************************/


    The following is the vb application code used to access this method
    /**********************************************************/
    Private Sub Command1_Click()
    On Error GoTo ErrorHandler
    Dim obj As Object
    Set obj = CreateObject("ComPlusTest.clsTest")

    MsgBox obj.General_Test_Method
    Set obj = Nothing
    Exit Sub
    ErrorHandler:
    Set obj = Nothing
    MsgBox Err.Description & ". The code failed at line : " & Erl, vbCritical
    End Sub
    /**********************************************************/

    The above codes are copied from the Microsoft site and the instructions are strictly followed. Still the same error is occuring. The url for the above code is http://support.microsoft.com/default...en-us;q186342.

    Please Help me to find the solution of this problem.
    [B][COLOR=blue]

  2. #2
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    in the Project Properties of your DLL, did check:
    Unattended Execution and Retained In Memory?
    r u sure that the failed happen when VB trying create the Object Context or at some else place?

  3. #3
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253
    if the above don't work then try specifying the server on which to create the object:

    VB Code:
    1. CreateObject("MyProject.MyClass","MyServer")

    and also . . .

    (i) You made the COM+ application a server app (not a library one)
    (ii) you have installed MSI 2 on the Win98 machine

  4. #4
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253
    and addendum: in COM+ use this

    VB Code:
    1. GetObjectContext.SetComplete

    to vote on transactions rather than declaring at as an object et al

  5. #5
    Frenzied Member yrwyddfa's Avatar
    Join Date
    Aug 2001
    Location
    England
    Posts
    1,253
    you also use VBR/TLB to remote your objects too - use the CLIREG.exe utility.

    You get more control of how the object is remoted too.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width