[Mono-list] Error using DataTable in a web service

David P. Donahue ddonahue at ccs.neu.edu
Tue Jan 24 19:41:58 EST 2006


I've added a simple function to a web service that, with unimportant 
details removed, boils down to the following:

DataTable MyFunction(){
   return FunctionWhichReturnsADataSet().Tables[0];
}

Prior to adding this function, everything works fine.  Once I add this 
and re-compile, when I try to browse to the service I get the following 
error:

"You must implement a default accessor on System.Data.PropertyCollection 
because it inherits from ICollection"

Google's not turning up much on this for me, and I'm completely at a 
loss as to what the problem might be in the code.  Any ideas what might 
be causing this and what I need to do to fix it?


Regards,
David P. Donahue
ddonahue at ccs.neu.edu
http://www.cyber0ne.com


More information about the Mono-list mailing list