We have a data framework (built by a previous architect) that uses an
object similar to a DataRow object. What I would like to do is change
the object so that programmers can drop the object in the component
section of a form (like you would a DataSet object) and enable the
ability to bind to the object at design time (it is already bindable
at run time). By looking at the other components that can be dropped
in that space, there seemed to be 2 common things. One is that the
class derives from either MarshalByRefComponent or
MarshalByValueComponent, and the other is that it implements the
ISupportInitialize interface. I changed our object to meet both of
those requirements (I went with MarshalByValueComponent). However
now, when I try to access that object from a web service, I get the
following error:
Cannot serialize member
System.ComponentModel.MarshalByValueComponent.Site of type
System.ComponentModel.ISite because it is an interface.
I tried overriding the default implementation of Site, and marking it
as [XmlIgnore], but I still get the same error. Any suggestions?
Thanks,
Ian