[Mono-list] WCF service on mono

Nadeem Backus nadeem.backus at gmail.com
Tue Aug 24 18:06:07 EDT 2010


I have a simple console hosted wcf service using basichttpbinding,
when invoking the service I am getting a bad request (400), the
executable assembly also works fine under windows.

I am using the mono opensuse livecd and have also tryed the service on
centos with the latest mono 2.6.7

Does any one have any idea why this might be occuring?

here is the serviceModel node from the app.config:

 <system.serviceModel>
    <bindings />
    <behaviors>
      <serviceBehaviors>
        <behavior name="mexbe">
          <serviceMetadata />
          <serviceDebug includeExceptionDetailInFaults="True"/>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <services>
      <service behaviorConfiguration="mexbe" name="NB.Services.SummaryService">
        <endpoint address="SummaryService" binding="basicHttpBinding"
contract="NB.Contract.Service.ISummaryService" />
        <endpoint address="SummaryService/mex"
binding="mexHttpBinding"  contract="IMetadataExchange" />
        <host>
          <baseAddresses>
            <add baseAddress="http://localhost:9001/NB/SummaryService/" />
          </baseAddresses>
        </host>
      </service>
    </services>
  </system.serviceModel>

Thanks for your assistance.

Nadeem


More information about the Mono-list mailing list