I have written a COM+ DLL in vb.net to return all the user samaccount name
in a given OU. The results are returned as a dataview.
As the ASP.NET page calls the function from the COM+ it fails with the
following error:
The type System.Data.DataView in Assembly System.Data, Version=1.0.5000.0,
Culture=neutral, PublicKeyToken=b77a5c561934e089 is not marked as
serializable.
I tried just returning one name as a string and it worked fine. So is there
something I should be doing to return Arraylists and datasets??
Thanks
Bill
SqlRanger - 12 May 2004 07:51 GMT
You can't return a dataview from a serviced component in a COM+ server
application because datatviews are not serializable. If the component were
in a library application you could return a dataview because library
applications load in the same proccess as the client and so don't need to be
serialized. I suggest you return a dataset or an array.

Signature
Regards from Madrid (Spain):
Jes?s L?pez
MVP Microsoft .NET
"No dar?s tropez?n ni desatino que no te haga adelantar camino"