Click here to Skip to main content
12,952,181 members (57,758 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
OriginalGriff 6,239
CHill60 3,490
Maciej Los 3,083
Jochen Arndt 1,975
ppolymorphe 1,880

Advertise | Privacy | Mobile
Web02 | 2.8.170525.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