Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. Unable to Use Net TCp Binding

Unable to Use Net TCp Binding

Scheduled Pinned Locked Moved WCF and WF
wcfcsharpwpfsecurityhelp
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Y Offline
    Y Offline
    Yashveer singh
    wrote on last edited by
    #1

    I have configured my WCf service with basic and Net Tcp bindings but while downloading metaData error is coming. Enable to Download MetaData and protocol not Supported here is my Config file <system.serviceModel> <services> <service behaviorConfiguration="CustomerServiceMEXBehavior" name="CustomerService.CustomerService"> <endpoint address="" binding="basicHttpBinding" contract="CustomerService.ICustomerService" /> <endpoint address="net.tcp://localhost:8090/CustomerService" binding="netTcpBinding" bindingConfiguration="tcpBinding" name="netTcpEndpoint" contract="CustomerService.ICustomerService" /> <host> <baseAddresses> <add baseAddress="http://localhost:8081/CustomerService" /> <add baseAddress="net.tcp://localhost:8090/CustomerService" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="CustomerServiceMEXBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <netTcpBinding> <binding name="tcpBinding"> <reliableSession enabled="true" /> <security> <transport clientCredentialType="None" protectionLevel="EncryptAndSign"> <extendedProtectionPolicy policyEnforcement="Never" /> </transport> </security> </binding> </netTcpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> Can anybody tell me what i am doing wrong or what kind of settings i need to change for this to work

    L J R 3 Replies Last reply
    0
    • Y Yashveer singh

      I have configured my WCf service with basic and Net Tcp bindings but while downloading metaData error is coming. Enable to Download MetaData and protocol not Supported here is my Config file <system.serviceModel> <services> <service behaviorConfiguration="CustomerServiceMEXBehavior" name="CustomerService.CustomerService"> <endpoint address="" binding="basicHttpBinding" contract="CustomerService.ICustomerService" /> <endpoint address="net.tcp://localhost:8090/CustomerService" binding="netTcpBinding" bindingConfiguration="tcpBinding" name="netTcpEndpoint" contract="CustomerService.ICustomerService" /> <host> <baseAddresses> <add baseAddress="http://localhost:8081/CustomerService" /> <add baseAddress="net.tcp://localhost:8090/CustomerService" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="CustomerServiceMEXBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <netTcpBinding> <binding name="tcpBinding"> <reliableSession enabled="true" /> <security> <transport clientCredentialType="None" protectionLevel="EncryptAndSign"> <extendedProtectionPolicy policyEnforcement="Never" /> </transport> </security> </binding> </netTcpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> Can anybody tell me what i am doing wrong or what kind of settings i need to change for this to work

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      Try building the service separate and run then download the fresh version

      1 Reply Last reply
      0
      • Y Yashveer singh

        I have configured my WCf service with basic and Net Tcp bindings but while downloading metaData error is coming. Enable to Download MetaData and protocol not Supported here is my Config file <system.serviceModel> <services> <service behaviorConfiguration="CustomerServiceMEXBehavior" name="CustomerService.CustomerService"> <endpoint address="" binding="basicHttpBinding" contract="CustomerService.ICustomerService" /> <endpoint address="net.tcp://localhost:8090/CustomerService" binding="netTcpBinding" bindingConfiguration="tcpBinding" name="netTcpEndpoint" contract="CustomerService.ICustomerService" /> <host> <baseAddresses> <add baseAddress="http://localhost:8081/CustomerService" /> <add baseAddress="net.tcp://localhost:8090/CustomerService" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="CustomerServiceMEXBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <netTcpBinding> <binding name="tcpBinding"> <reliableSession enabled="true" /> <security> <transport clientCredentialType="None" protectionLevel="EncryptAndSign"> <extendedProtectionPolicy policyEnforcement="Never" /> </transport> </security> </binding> </netTcpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> Can anybody tell me what i am doing wrong or what kind of settings i need to change for this to work

        J Offline
        J Offline
        John Gathogo
        wrote on last edited by
        #3

        Could it be because you are missing the mexHttpBinding? <endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange"/>

        1 Reply Last reply
        0
        • Y Yashveer singh

          I have configured my WCf service with basic and Net Tcp bindings but while downloading metaData error is coming. Enable to Download MetaData and protocol not Supported here is my Config file <system.serviceModel> <services> <service behaviorConfiguration="CustomerServiceMEXBehavior" name="CustomerService.CustomerService"> <endpoint address="" binding="basicHttpBinding" contract="CustomerService.ICustomerService" /> <endpoint address="net.tcp://localhost:8090/CustomerService" binding="netTcpBinding" bindingConfiguration="tcpBinding" name="netTcpEndpoint" contract="CustomerService.ICustomerService" /> <host> <baseAddresses> <add baseAddress="http://localhost:8081/CustomerService" /> <add baseAddress="net.tcp://localhost:8090/CustomerService" /> </baseAddresses> </host> </service> </services> <behaviors> <serviceBehaviors> <behavior name="CustomerServiceMEXBehavior"> <serviceMetadata httpGetEnabled="true" /> <serviceDebug includeExceptionDetailInFaults="false" /> </behavior> </serviceBehaviors> </behaviors> <bindings> <netTcpBinding> <binding name="tcpBinding"> <reliableSession enabled="true" /> <security> <transport clientCredentialType="None" protectionLevel="EncryptAndSign"> <extendedProtectionPolicy policyEnforcement="Never" /> </transport> </security> </binding> </netTcpBinding> </bindings> <serviceHostingEnvironment multipleSiteBindingsEnabled="true" /> </system.serviceModel> <system.webServer> <modules runAllManagedModulesForAllRequests="true"/> </system.webServer> Can anybody tell me what i am doing wrong or what kind of settings i need to change for this to work

          R Offline
          R Offline
          Ravi Sant
          wrote on last edited by
          #4

          you need to include mexHttpBinding along with basicHttpBinding

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups