Hi, I made this change in mono-3.0.12 (the files haven't change since 3.0.10 when I tried and the callstack is the same) but it is evaluated as false. Even if I force the condition to be true, the cast is failing. TChannel is of type IRequestSessionChannel. How could it cast a IRequestChannel instance object to a IRequestSessionChannel object since IRequestSessionChannel inherits from IRequestChannel? (I would understand the other way around but not this one.)
diff -r 3a06be2fcdee mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelFactory.cs --- a/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelFactory.cs Tue Jul 09 23:39:48 2013 +0300 +++ b/mcs/class/System.ServiceModel/System.ServiceModel.Channels/HttpChannelFactory.cs Wed Jul 10 00:49:40 2013 +0300 @@ -82,7 +82,7 @@ throw new ArgumentException (String.Format ("The endpoint address '{0}' and via uri '{1}' must match when the corresponding binding has addressing version in the message version value as None.", address.Uri, via)); Type t = typeof (TChannel); - if (t == typeof (IRequestChannel)) + if (t.IsAssignableFrom(typeof (IRequestChannel))) return (TChannel) (object) new HttpRequestChannel ((HttpChannelFactory<IRequestChannel>) (object) this, address, via); On Fri, May 17, 2013 at 10:37 AM, Andres G. Aragoneses <kno...@gmail.com> wrote: > On 17/05/13 07:16, ticapix wrote: >> >> I don't understand how to apply the proposed fix >> (http://permalink.gmane.org/gmane.comp.gnome.mono.devel/40283) in my case >> :( >> >> Which of the 6 frames of the stacktrace should be modified ? >> > > Line 85 of HttpChannelFactory? > > > > _______________________________________________ > Mono-devel-list mailing list > Mono-devel-list@lists.ximian.com > http://lists.ximian.com/mailman/listinfo/mono-devel-list -- Pierre Gronlier _______________________________________________ Mono-devel-list mailing list Mono-devel-list@lists.ximian.com http://lists.ximian.com/mailman/listinfo/mono-devel-list