-
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
-
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.
-
Hi,
Thanx for your solu deja. In that what do u mean by 'proxy' .
With Advance thanx
Ethiraj.BalaKrishnan
-
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.
-
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.
-
it is not absolute correct, because if u use clireg32, u must configure DCOM both on the server and the client.