Hello, I don't think multiple endpoints were ever examined much, but to my understanding, the wsdl support requires multiple endpoint in different ChannelDispatcher and different Binding, so in general it worked. http://veritas-vos-liberabit.com/monogatari/2010/06/servicemetadataextension-refactoring-story.html
A general remedy for this kind of conflict in ServiceMetadataBehavior was to avoid using conflicting endpoint URL. I don't know if it will work for you though. Anyways WCF hack is a moving target and things and you had better try 2.10s. Atsushi Eno (2011/02/15 18:08), Tymek Majewski wrote: > Hi, > > I had mono-2.6.7 installed and and a WCF service: > > <system.serviceModel> > <behaviors> > <endpointBehaviors> > <behavior name="RestB"><webHttp/></behavior> > </endpointBehaviors> > </behaviors> > <serviceHostingEnvironment aspNetCompatibilityEnabled="true" /> > <services> > <service name="Rest"> > <endpoint address="" behaviorConfiguration="RestB" > binding="webHttpBinding" contract="Rest" /> > </service> > </services> > </system.serviceModel> > > It worked. > > I wanted to use multiple endpoints and I kept getting errors as soon > as I specified the address, so I decided to try mono 2.8.2. After > installing 2.8.2 (after adding serviceBehavior which mono complained > about) I started getting: > > "HttpListenerContext does not match any of the registered channels" > System.InvalidOperationException: HttpListenerContext does not match > any of the registered channels > at System.ServiceModel.Channels.Http.HttpListenerManager.ProcessNewContext > (System.ServiceModel.Channels.Http.HttpContextInfo ctxi) [0x00000] in > :0 > at System.ServiceModel.Channels.SvcHttpHandler.ProcessRequest > (System.Web.HttpContext context) [0x00000] in :0 > at System.Web.HttpApplication+c__Iterator2.MoveNext () [0x00000] in :0 > at System.Web.HttpApplication.Tick () [0x00000] in :0 > > when trying to access urls which worked in mono-2.6.7. > > I tried with both mod-mono-server2 and mod-mono-server4 and using > .../lib/mono/2.0 .../lib/mono/4.0. > > I tried to look up this problem but I couldn't find anything. > > Could someone show me a working example of a WCF service in mono-2.8.2 > or mono-2.6.7 configuration with multiple endpoints? > > After reverting to mono-2.6.7 the my service 'Rest' shown above works again. > > Thanks in advance gurus. > > Thanks Tymek > > -- > Tymek Majewski > Software Developer > NearMap.com > _______________________________________________ > Mono-list maillist - [email protected] > http://lists.ximian.com/mailman/listinfo/mono-list > > > _______________________________________________ Mono-list maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-list
