I'm trying to create a WCF service that can be accessed over HTTP and Named Pipes. After changing the default configuration (I added the netNamedPipeBinding and endpoint), I can't consume the WCF service anymore. Something has to be wrong with my Web.config.
Edit:
I forgot to post the error I am getting:
Error: Cannot obtain Metadata from http://localhost/WebServices/CreateContent.svc
If this is a Windows (R) Communication Foundation service to which you have access, please check that you have enabled metadata publishing at the specified address.
Web.config
<system.serviceModel>
<services>
<service name="Application.WebServices.CreateContent" behaviorConfiguration="behave">
<endpoint binding="basicHttpBinding" bindingConfiguration="basicHttpBinding"
name="basicHttp" contract="Application.WebServices.ICreateContent" />
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="mexHttpBinding"
name="mexHttp" contract="IMetadataExchange" />
<endpoint binding="netNamedPipeBinding" bindingConfiguration="netNamedPipeBinding"
name="netNamedPipe" contract="PTUmbraco.WebServices.ICreateContent" />
<endpoint binding="mexNamedPipeBinding" bindingConfiguration="mexNamedPipeBinding"
name="mexNamedPipe" contract="IMetadataExchange" />
<host>
<baseAddresses>
<add baseAddress="http://localhost/WebServices/CreateContent.svc" />
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="behave">
<serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<bindings>
<basicHttpBinding>
<binding name="basicHttpBinding" maxBufferSize="10485760" maxReceivedMessageSize="10485760" />
</basicHttpBinding>
<netNamedPipeBinding>
<binding name="netNamedPipeBinding" />
</netNamedPipeBinding>
<mexHttpBinding>
<binding name="mexHttpBinding" />
</mexHttpBinding>
<mexNamedPipeBinding>
<binding name="mexNamedPipeBinding" />
</mexNamedPipeBinding>
</bindings>
</system.serviceModel>