[Mono-list] WCF on Mono 2.8.2
atsushieno at veritas-vos-liberabit.com
Tue Feb 15 21:55:43 EST 2011
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.
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
Anyways WCF hack is a moving target and things and you had better try 2.10s.
(2011/02/15 18:08), Tymek Majewski wrote:
> I had mono-2.6.7 installed and and a WCF service:
> <behavior name="RestB"><webHttp/></behavior>
> <serviceHostingEnvironment aspNetCompatibilityEnabled="true" />
> <service name="Rest">
> <endpoint address="" behaviorConfiguration="RestB"
> binding="webHttpBinding" contract="Rest" />
> 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
> 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
> Mono-list maillist - Mono-list at lists.ximian.com
More information about the Mono-list