views:

276

answers:

1

I am getting this error message in the web service when i am updating the reference

Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.ISite because it is an interface.

Why is this happening?

+1  A: 

It sounds like you've used a control or component in the web-service interface (i.e. as a return value or method argument). That won't work - as it needs to serialize (typically) as xml. You would typically send data in objects - not controls.

What does the service interface look like?

Marc Gravell