[Monodroid] WCF on MonoDroid
Atsushi Eno
atsushieno at veritas-vos-liberabit.com
Wed Mar 2 00:51:40 EST 2011
Not sure if it is monodroid specific issue, or monodroid is applied
recent PE verifier patch locally, or anyhow else, but a possible
workaround is to explicitly
override ClientBase<T>.CreateChannel() to not call
ChannelFactory<T>.CreateChannel() which dynamically creates the proxy.
Typically ClientBase<T>.CreateChannel() returns a ChannelBase<T>
derivation (with svcutil -monotouch or -moonlight it is automatically
generated).
Atsushi Eno
(2011/03/01 2:59), Chris Erickson wrote:
> Hello,
> I'm trying to use some WCF proxies I have in monodroid, and am getting
> an exception:
>
> System.TypeLoadException: Could not load type
> '__clientproxy_IHpDataPipe' from assembly 'dummy, Version=0.0.0.0,
> Culture=neutral, PublicKeyToken=null'. At
> System.Reflection.MonoCMethod.Invoke(System.Reflection.Binder binder,
> System.Object[] parameters, System.Globalization.CultureInfo
> culture)[0x0012d in
> /home/jon/Development/mono-droid/mono/mcs/class/corlib/System.Reflection/MonoMethod.cs:536…..
>
> I'm guessing this is the WCF dynamic proxy generation — do I need to
> go the route I had to on MonoTouch and use the .net 2.0 proxies?
>
> Chris
>
>
> _______________________________________________
> Monodroid mailing list
> Monodroid at lists.ximian.com
>
> UNSUBSCRIBE INFORMATION:
> http://lists.ximian.com/mailman/listinfo/monodroid
More information about the Monodroid
mailing list