Click here to Skip to main content
13,146,663 members (67,898 online)
Rate this:
Please Sign up or sign in to vote.
See more:
I have a Service Application which has the following web.config file:

<?xml version="1.0"?>
    <compilation debug="true" targetFramework="4.0" />
      <service behaviorConfiguration="metadatabehaviour" name="WCF_Service.HistorianService">
        <endpoint address="" binding="basicHttpBinding" bindingConfiguration=""
          contract="WCF_Service.IHistorianCollectorService" />
        <endpoint address="net.tcp://localhost:8081/mex" binding="mexTcpBinding"
          contract="IMetadataExchange" />
        <endpoint address="net.tcp://localhost:8081" binding="netTcpBinding"
          contract="WCF_Service.IHistorianCollectorService" />
        <behavior name="metadatabehaviour">
          <serviceMetadata httpGetEnabled="false" />
          <serviceDebug includeExceptionDetailInFaults="false" />
    <serviceHostingEnvironment multipleSiteBindingsEnabled="false" />
    <modules runAllManagedModulesForAllRequests="true"/>

And I am getting the following error: Failed to add a service. Service metadata may not be accessible. Make sure your service is running and exposing metadata.I can successfully run the service if I am just implementing the "basicHttpBinding" but as soon as I introduce a "netTcp" binding, I start getting this error. I have changed the 'mex' binding to 'mexTcpBinding' but still the error persists. I have tried toggling the relevant properties. Any idea how I can correct this error?
Posted 24-Sep-12 20:50pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 25 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100