Hi,
I’m trying to use net remoteing with Com+. I created a wrapper for the com object. I can call the com object from my c# client and an able to get return type of strings and int’s. One of the methods returns a variant. I can get the object back from the com object but cannot convert it. I tried using adodb. examples I tried is.
object dept = obj.tryme();--- this wraps the com call which returns a variant.
ADODB._Recordset rs = (ADODB._Recordset) dept; and
OleDbDataAdapter da = new OleDbDataAdapter();
da.Fill(DS,dept, "test");
dept is the variant that is return from the com object. which is a recordset.
The current asp page uses it like this.
rsDept = objdept.getdepartment(1,"")
using the da.fill I get an exeception of
Unable to retrieve the IRowset interface from the ADODB.Recordset object.
The type of object retruned is system._comobject.
Any suggestions?
Thanks
Russ
|