[Mono-list] WCF on Mono 2.8.2

Tymek Majewski tym.majewski at nearmap.com
Tue Feb 15 04:08:13 EST 2011


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

More information about the Mono-list mailing list