Results 1 to 6 of 6

Thread: COM with MTS

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Location
    Chennai - India
    Posts
    7

    Question COM with MTS

    Hi,

    This is Bala, and i'm new to MTS & Dcom area. I created COM (activex.dll) and i deployed it into MTS (in new package). The Transaction type of MTS-package is 'Requires New Transaction'.

    And compatibility type of COM is 'Binary Compatilibity'. After that i wrote Client Program with using of COM. It is successfully running in the same (MTS running-Server) machine. But it gives error message as 'Run Time Error 429, Activex Component Can't Create Object'.


    I'm writing here, my client frm coding
    =============================================
    private function ConnectLocal() as boolean
    Dim gCon as new ADODB.Connection
    Dim obj As Object
    Set obj = CreateObject("Connect.clsConnect")
    If obj.gConnect(gCon) = True Then
    ConnectLocal = True
    Else
    ConnectLocal = False
    End If
    end function
    =============================================


    Please help me and correct this code.

    With Advance Thanx



    Ethiraj.BalaKrishnan

  2. #2
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    i realized that when u try to create the MTS object from remote machine, u have probelm? is it correct?
    if it is, u have to install a proxy on the remote machine.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2003
    Location
    Chennai - India
    Posts
    7
    Hi,

    Thanx for your solu deja. In that what do u mean by 'proxy' .


    With Advance thanx



    Ethiraj.BalaKrishnan

  4. #4
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    when u create COM+ or MTS application, it works fine when u create one of those COM objects on the same machine. now u want to enable remote application to use these COM objects, so you must install proxy on those clients, so they could connect to the COM+ application.
    if u using COM+, right click on your application (i.e. COM+ application) and choose export, select proxy application and COM+ will emit MSI installation file, take this file, copy it to the client machine and run it. that should work fine.

  5. #5
    Hyperactive Member
    Join Date
    Nov 2002
    Location
    india
    Posts
    418
    hi,

    other wise copy .tlb and .vbr files on client system and register the same using clireg32 to remote system then u r problem will be solved.

  6. #6
    Lively Member
    Join Date
    Aug 2002
    Posts
    126
    it is not absolute correct, because if u use clireg32, u must configure DCOM both on the server and the client.

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