[mono-android] Can not build WCF proxy generated by slsvcutil.exe 'ChannelBase' could not be found

Felix Collins felix at intranel.com
Mon Jan 23 08:13:39 UTC 2012


Hi,
I've been struggling to get a WCF web service client going on monotouch.  I have had the same client working with a dynamic proxy on .net, mono on mac and android. Now I need to get a client going for monotouch and that needs to be a statically generated proxy due to the limitations imposed by iOS licensing.  I found the example at http://wiki.ios.xamarin.com/HowTo/WebServices/Using_WCF   Is this now out of date? I generated a proxy for my webservice using slsvcutil.exe from Silverlight 3.0.40818.0  This proxy compiles ok with .net but will not compile with monodroid or monotouch.  The error I get is that the ChannelBase<T> class is not found.

Has anyone else had this issue? Is there another way to generate a proxy statically so that I can proceed? Or is there a way to fix up the generated file so that it will compile with mono.

I tried making the reference to ChannelBase explicitly as System.ServiceModel.ClientBase<IMobileBulletChannel>.ChannelBase<IMobileBullet> but then I get an error that ChannelBase is inaccessible due to protection level.

Is there a mono version of slsvcutil.exe that will generate compatible code?

Cheers,
Felix


More information about the Monodroid mailing list