I have a similar problem, I want to make a web service who has a web method which can take an SqlCommand object as an argument. But I guess this isnât possible without serializing the SqlCommand object first.
Ideally I want this:
public int HelloCommand(SqlCommand Command)
this.Command = Command;
When I make this method in web service, it compiles successfully but when I update my web reference in client application it gives some weird error message saying something like:
Cannot serialize member System.ComponentModel.Component.Site of type System.ComponentModel.Component.ISite because it is an interface.
Can somebody help?