[Mono-dev] The ServiceHost must have at least one application endpoint

JustinN dogbertuk2000 at gmail.com
Mon Apr 2 11:14:25 UTC 2012


I'm having a bit of difficulty getting WCF to work on Mono.

I'm running Mono 2.10.2 on CentOS and getting the following error:

The ServiceHost must have at least one application endpoint (that does not
include metadata exchange endpoint) defined by either configuration,
behaviors or call to AddServiceEndpoint methods.

and my web.config has the following:

	<system.serviceModel>
		<behaviors>
			<serviceBehaviors>
				<behavior name="b">
					<serviceMetadata httpGetEnabled="true" httpGetUrl="wsdl"/>
					<serviceDebug includeExceptionDetailInFaults="false"/>
				</behavior>
			</serviceBehaviors>
		</behaviors>
		<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
    <services>
      <service name="DataServices" behaviorConfiguration="b">
        <endpoint binding="basicHttpBinding"
contract="Testing.IDataServices" address="http://localhost/DataServices.svc" 
/>
      </service>
    </services>
  </system.serviceModel>



Could somebody please help me get this working? I'm sure it must be a simple
config I have missed out, but I've wracked my brain and can't seem to work
it out.


- Justin

--
View this message in context: http://mono.1490590.n4.nabble.com/The-ServiceHost-must-have-at-least-one-application-endpoint-tp4525759p4525759.html
Sent from the Mono - Dev mailing list archive at Nabble.com.


More information about the Mono-devel-list mailing list