When I am calling a .NET COM object with a DataWindow from
PowerBuilder application I get the following exception
thrown.

"BindConnection did not complete successfully, the error
message is : Failed to create a instance of type DbRoutine."

The .NET Code is as follows:

###BEGIN FUNCTION

Dim glOleDBConn As New System.Data.OleDb.OleDbConnection
Dim glAdoTrans As Sybase.DataWindow.AdoTransaction
Try
glOleDBConn.ConnectionString =
"Server=localhost;Provider=SQLOLEDB;Initial
Catalog=Northwind" & _
";User ID=sa;Password=sa;"

glOleDBConn.Open()
glAdoTrans = New
Sybase.DataWindow.AdoTransaction(glOleDBConn)
glAdoTrans.BindConnection()

dwTEST.GetChild("id").SetTransaction(glAdoTrans)
dwTEST.GetChild("id").Retrieve()
Catch ex As Exception
MessageBox.Show(ex.ToString)
Finally
glOleDBConn.Close()
glOleDBConn.Dispose()
glOleDBConn = Nothing

glAdoTrans = Nothing
End Try
####END FUNCTION

If I call to it a second time I get a message saying that
the bind already exists and that another Key Definition is
being assigned. I had one of our PB developers write some
code to call this .NET COM object which follows:

####BEGIN PB CODE

oleobject testole
long li_rc
string ls_com


testole = create oleobject
ls_com = "TMWInterface.Logic"
li_rc = testole.ConnectToNewObject(ls_com)
IF li_rc < 0 THEN
MessageBox("Connecting to COM Object Failed", ls_com ,
information!, ok!, 1)
destroy testole
return
end if
testole.testbind

testole.DisconnectObject
destroy testole

####END PB CODE