[mono-android] Can not build WCF proxy generated by slsvcutil.exe 'ChannelBase' could not be found
Willem Meints
willemm at infosupport.com
Mon Jan 23 14:21:13 UTC 2012
Hi Felix,
Can't say that I recognize any of your problems. I've used slsvcutil.exe quite a few times now with good results.
I think the main difference here is that I am using version 4 of slsvcutil.exe since I don't have any v3 stuff floating around my machine.
You might want to give that version a try.
Kind Regards,
Willem Meints
-----Oorspronkelijk bericht-----
Van: monodroid-bounces at lists.ximian.com [mailto:monodroid-bounces at lists.ximian.com] Namens Felix Collins
Verzonden: Monday, January 23, 2012 9:14 AM
Aan: monodroid at lists.ximian.com
Onderwerp: [mono-android] Can not build WCF proxy generated by slsvcutil.exe 'ChannelBase' could not be found
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
_______________________________________________
Monodroid mailing list
Monodroid at lists.ximian.com
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid
More information about the Monodroid
mailing list