Hi there,
I have method of a WCF service that accepts an interface as a parameter called IClient
[OperationContract]
void RegisterClientToCallBackTo(IClientCallBack client);
public interface IClient
{
void SendMessage(string message);
}
I have a windows form that implements iclient and When I pass the form into the method I get the error:
Type 'FormMain' cannot inherit from a type that is not marked with DataContractAttribute or SerializableAttribute. Consider marking the base type 'System.Windows.Forms.Form' with DataContractAttribute or SerializableAttribute, or removing them from the derived type.
i tried marking the form with [DataContractAttribute] and [SerializableAttribute] but i still get that same error
any ideas?