Hello, The code fragment you posted was too generic and the actual important things are rather in your contract code. Can you post that too?
Atsushi Eno > I have a number of data types I’d like to share between my client and > server. The client dataypes are in a Monodroid class library and I > successfully generated a wrapper using slsvcutil and the /r option. > > When I go to call the WCF service like so: > > BasicHttpBinding binding = new > BasicHttpBinding(BasicHttpSecurityMode.Transport); > > EndpointAddress endpoint = new EndpointAddress(GetDesktopServiceUrl()); > > MyServiceClient client = new MyServiceClient (binding, endpoint); > > client.DoStuffCompleted += ….. > > client.DoStuffAsync(….) > > I get an error message in the Completed event: > > "'this' type cannot be an interface itself" > > Any help would be greatly appreciated. I know I can use WebServices > but then I end up having to map my server objects to local objects and > I’d like to avoid that. > > Thanks > > Narayan > > > _______________________________________________ > Monodroid mailing list > Monodroid@lists.ximian.com > > UNSUBSCRIBE INFORMATION: > http://lists.ximian.com/mailman/listinfo/monodroid _______________________________________________ Monodroid mailing list Monodroid@lists.ximian.com UNSUBSCRIBE INFORMATION: http://lists.ximian.com/mailman/listinfo/monodroid